actionKeys: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) (description, see also) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns | | Returns [[Array]] containing [[DIK_KeyCodes|dikCodes]] of keys, buttons and combos assigned to the given user action. Action names could be found in config class ControllerSchemes or [[:Category:Key Actions|user action names]] or user profile, for example: | ||
<syntaxhighlight lang=cpp> | |||
keyWatch[]={24}; | |||
</syntaxhighlight> | |||
To retrieve the value, use the property name without 'key': | |||
<code>[[actionKeys]] "Watch"; // 24</code> | |||
In addition, some of the actions are also listed in here: [[inputAction/actions]]|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''actionKeys''' userAction |= Syntax | ||
|p1= userAction: [[String]] |= Parameter 1 | |p1= userAction: [[String]] |= Parameter 1 | ||
| [[Array]] |= Return value | | [[Array]] of [[Number]]s|= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>_array = [[actionKeys]] "ReloadMagazine"</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[actionKeysNames]], [[actionKeysNamesArray]], [[actionKeysImages]] |= See also | | [[actionKeysNames]], [[actionKeysNamesArray]], [[actionKeysImages]], [[inputAction]] |= See also | ||
}} | }} |
Revision as of 15:59, 10 April 2016
Description
- Description:
- Returns Array containing dikCodes of keys, buttons and combos assigned to the given user action. Action names could be found in config class ControllerSchemes or user action names or user profile, for example:
keyWatch[]={24};
To retrieve the value, use the property name without 'key':
In addition, some of the actions are also listed in here: inputAction/actionsactionKeys "Watch"; // 24
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_array = actionKeys "ReloadMagazine"
Additional Information
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