Difference between revisions of "VN fnc module UI gestureMenu KeyHandler"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(One intermediate revision by the same user not shown) | |||
Line 44: | Line 44: | ||
|r1d= | |r1d= | ||
− | |x1= <code>(findDisplay 46) displayAddEventHandler ["KeyUp", { call VN_fnc_module_UI_gestureMenu_KeyHandler; }];</code> | + | |x1= <code>(findDisplay 46) displayAddEventHandler ["KeyUp", { call [[VN_fnc_module_UI_gestureMenu_KeyHandler]]; }];</code> |
}} | }} |
Latest revision as of 20:17, 26 February 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Dscha |
|
Description
"keyUp" UI Eventhandler function, runs code and blocks standard key. Default key: Y (on a QWERTY keyboard). Uses VN_fnc_kbm_getKey.
Syntax
- Syntax
- [display, key, shift, ctrl, alt] call VN_fnc_module_UI_gestureMenu_KeyHandler
- Parameters
- display: Display or Control - (Optional, default
nil
) EH display or control, unused - key: Number - pressed key
- shift: Boolean - is shift key pressed
- ctrl: Boolean - is ctrl key pressed
- alt: Boolean - is alt key pressed
- Return value
- Nothing
Examples
- Example 1
(findDisplay 46) displayAddEventHandler ["KeyUp", { call VN_fnc_module_UI_gestureMenu_KeyHandler; }];