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 { /* ... */ };
Also available as Markdown and JSON, or read the 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: StringmaxKeys: Number - maximum number of keys to returninputDevicePriority: 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 { /* ... */ };