VN_fnc_kbm_getKey
VN_fnc_kbm_getKey
Returns the currently assigned keybind to a specific action.
Syntax
[] call VN_fnc_kbm_getKeyParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
action |
String | — | name of the action as defined in config |
Return value
Array - format [key, shift, ctrl, alt]:
• key: Number - DIK key code
• shift: Boolean - shift modifier needed
• ctrl: Boolean - ctrl modifier needed
• alt: Boolean - alt modifier needed
Examples
private _data = ["GestureMenu"] call VN_fnc_kbm_getKey; // returns [15,false,false,false] (default)