VN_fnc_kbm_getKey
Revision as of 21:02, 20 January 2021 by Lou Montana (talk | contribs) (Text replacement - "]]; |p1n=" to "]] |p1n=")
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Heyoxe |
|
Description
Returns the currently assigned keybind to a specific action.
Syntax
- Syntax
- [] call VN_fnc_kbm_getKey
- Parameters
- 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
- Example 1
private _data = ["GestureMenu"] call VN_fnc_kbm_getKey; // returns [15,false,false,false] (default)