WGL.Q
The return type is a stacked string. A string inside a string. To compare use first single and inside double quotes:
if (actionKeysNames "User1" == '"W"') then { /* ... */ };
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Returns a list of button names assigned to the given user action.
Action names can be found in config class ControllerSchemes or user action names.
actionKeysNames userAction
Parameters:
userAction: StringReturns: String
actionKeysNames [userAction, maxKeys, inputDevicePriority]
Parameters:
userAction: String
maxKeys: Number - maximum number of keys to return
inputDevicePriority: String - result sorted by inputDevicePriority with values:
"Mouse""Keyboard""Stick""Gamepad""Tracker""Combo" (mouse and keyboard combinations)"Controler" [sic] (any controller other than mouse or keyboard)Other values are considered as:
"Unsorted" (since arma3 1.36)Returns: String
_list = actionKeysNames "ReloadMagazine"; // """R"" or ""XBox X"""
actionKeys · actionKeysImages · actionKeysNamesArray · actionName · inputAction
The return type is a stacked string. A string inside a string. To compare use first single and inside double quotes:
if (actionKeysNames "User1" == '"W"') then { /* ... */ };