actionKeys: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(description, see also)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns a list of [[DIK_KeyCodes|dikCodes]] of buttons assigned to the given user action. You can find the action names in config class ControllerSchemes or [[:Category:Key Actions|user action names]]. |= Description
| 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
____________________________________________________________________________________________
____________________________________________________________________________________________


[[Array]] <nowiki>=</nowiki> '''actionKeys''' userAction |= Syntax
|  '''actionKeys''' userAction |= Syntax


|p1= userAction: [[String]] |= Parameter 1
|p1= userAction: [[String]] |= Parameter 1


| [[Array]] |= Return value
| [[Array]] of [[Number]]s|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_array = actionKeys "ReloadMagazine"</pre> |= Example 1
|x1= <code>_array = [[actionKeys]] "ReloadMagazine"</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[actionKeysNames]], [[actionKeysNamesArray]], [[actionKeysImages]] |= See also
| [[actionKeysNames]], [[actionKeysNamesArray]], [[actionKeysImages]], [[inputAction]] |= See also


}}
}}

Revision as of 16:59, 10 April 2016

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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': actionKeys "Watch"; // 24

In addition, some of the actions are also listed in here: inputAction/actions
Groups:
Uncategorised

Syntax

Syntax:
actionKeys userAction
Parameters:
userAction: String
Return Value:
Array of Numbers

Examples

Example 1:
_array = actionKeys "ReloadMagazine"

Additional Information

See also:
actionKeysNamesactionKeysNamesArrayactionKeysImagesinputAction

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

Notes

Bottom Section