VN_fnc_module_UI_gestureMenu_KeyHandler
Jump to navigation
Jump to search
← 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; }];