actionKeysEx: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
|gr1= Interaction | |gr1= Interaction | ||
|descr= Gives a broken down version of [[actionKeys]] return. Returns an [[Array]] containing the breakdowns of the [[DIK_KeyCodes|dikCodes]] of keys, buttons and combos assigned to the given user action. Action names can be found in config class ControllerSchemes or [[:Category:Key Actions|user action names]] or user profile (see {{ | |descr= Gives a broken down version of [[actionKeys]] return. Returns an [[Array]] containing the breakdowns of the [[DIK_KeyCodes|dikCodes]] of keys, buttons and combos assigned to the given user action.<br> | ||
Action names can be found in config class ControllerSchemes or [[:Category:Key Actions|user action names]] or user profile (see {{Link|#Example 1}}).<br> | |||
In addition, some of the actions are also listed here: [[inputAction/actions]] | In addition, some of the actions are also listed here: [[inputAction/actions]] | ||
The Key Device can be one of several types: | The Key Device can be one of several types: | ||
{{Columns|3 | {{Columns|3| | ||
| | |||
* {{hl|"KEYBOARD"}} | * {{hl|"KEYBOARD"}} | ||
* {{hl|"MOUSE_BUTTON"}} | * {{hl|"MOUSE_BUTTON"}} | ||
Line 21: | Line 21: | ||
* {{hl|"XINPUT"}} - (Xbox) Controller Input | * {{hl|"XINPUT"}} - (Xbox) Controller Input | ||
* {{hl|"TRACKER"}} - Motion Tracking (TrackIR, Tobii etc) | * {{hl|"TRACKER"}} - Motion Tracking (TrackIR, Tobii etc) | ||
}} | }} | ||
Latest revision as of 16:42, 17 April 2023
Description
- Description:
- Gives a broken down version of actionKeys return. Returns an Array containing the breakdowns of the dikCodes of keys, buttons and combos assigned to the given user action.
Action names can be found in config class ControllerSchemes or user action names or user profile (see Example 1).
In addition, some of the actions are also listed here: inputAction/actions The Key Device can be one of several types:- "KEYBOARD"
- "MOUSE_BUTTON"
- "MOUSE_AXIS"
- "JOYSTICK_BUTTON"
- "JOYSTICK_AXIS"
- "JOYSTICK_POV"
- "XINPUT" - (Xbox) Controller Input
- "TRACKER" - Motion Tracking (TrackIR, Tobii etc)
- Groups:
- Interaction
Syntax
- Syntax:
- actionKeysEx userAction
- Parameters:
- userAction: String - user action name (see inputAction/actions)
- Return Value:
- Array of Arrays in format [mainKeyArray, comboKeyArray, isDoubleTap]:
Examples
- Example 1:
- To retrieve the following key's data, use the property name without 'key':
keyWatch[] = { 24 };
actionKeysEx "Watch"; // [[[24, "KEYBOARD"], [], false]] - Example 2:
Additional Information
- See also:
- actionKeys actionKeysNames actionKeysNamesArray
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note