Difference between revisions of "VN fnc kbm getKey"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function" to "Category:TODO {{Function") |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 8: | Line 7: | ||
|a= | |a= | ||
− | |e= | + | |e= local |
|g1= keybinding | |g1= keybinding | ||
− | |d= | + | |d= Returns the currently assigned keybind to a specific action. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|s= [] call [[VN_fnc_kbm_getKey]]; | |s= [] call [[VN_fnc_kbm_getKey]]; | ||
− | |p1n= | + | |p1n= action |
− | |p1t= | + | |p1t= string |
− | |p1d= | + | |p1d= name of the action as defined in config |
|p1v= | |p1v= | ||
− | | | + | |r1t= array |
− | | | + | |r1d= format [key, shift, ctrl, alt]: |
− | | | + | * key: {{DataType|number}} - {{Biki|DIK_KeyCodes|DIK key code}} |
− | | | + | * shift: {{DataType|boolean}} - shift modifier needed |
− | + | * ctrl: {{DataType|boolean}} - ctrl modifier needed | |
− | | | + | * alt: {{DataType|boolean}} - alt modifier needed |
− | | | ||
− | |x1= <code> | + | |x1= <code>private _data = ["GestureMenu"] call VN_fnc_kbm_getKey; {{cc|returns [15,false,false,false] (default)}}</code> |
}} | }} |
Revision as of 22:02, 18 January 2021
← 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)