From Savage Game Design Wiki
Jump to navigation
Jump to search
Description
/*
File: fn_kbm_getKey.sqf
Author: Heyoxe
Date: 2020-10-14
Last Update: 2020-11-06
Public: Yes
Description:
Returns the currently assigned keybind to a specific action.
Parameter(s):
_action - Name of the action as define in the confign [STRING, defaults to "]
Returns:
_parsed: Array representing the current assigned key and it's modifiers [ARRAY]
0 - _key: <Number> DIK Key code.
1 - _shift: <Boolean> Needs Shift modifier to be pressed.
2 - _ctrl: <Boolean> Needs Ctrl modifier to be pressed.
3 - _alt: <Boolean> Needs Alt modifier to be pressed.
Example(s):
private _data = ["GestureMenu"] call VN_fnc_kbm_getKey; // _data => [15,false,false,false] (default)
*/
(Placeholder description extracted from the function header by LM_exportFunctionsToWiki.sqf)
Syntax
- Syntax
- [] call VN_fnc_kbm_getKey;
- Return value
- Nothing
Examples
- Example 1
-