Difference between revisions of "VN fnc module UI gestureMenu KeyHandler"
Jump to navigation
Jump to search
vn>Unknown user m (Generated by LM_exportFunctionsToWiki.sqf) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
|v= 1.00 | |v= 1.00 | ||
− | | | + | |author= Dscha |
− | |e= | + | |a= |
+ | |||
+ | |e= local | ||
|g1= gesture_menu | |g1= gesture_menu | ||
− | |d= | + | |d= {{Biki|User_Interface_Event_Handlers#onKeyUp|"keyUp" UI Eventhandler}} function, runs code and blocks standard key. Default key: Y (on a QWERTY keyboard). |
− | + | Uses [[VN_fnc_kbm_getKey]]. | |
− | + | |s= [display, key, shift, ctrl, alt] call [[VN_fnc_module_UI_gestureMenu_KeyHandler]] | |
− | |||
− | |||
− | + | |p1n= display | |
− | + | |p1t= {{Biki|Display}} or {{Biki|Control}} | |
− | + | |p1d= EH display or control, unused | |
− | + | |p1v= {{Biki|nil}} | |
− | |||
− | |||
− | |||
− | + | |p2n= key | |
− | + | |p2t= number | |
− | + | |p2d= pressed key | |
− | + | |p2v= | |
− | |||
− | + | |p3n= shift | |
− | + | |p3t= boolean | |
− | + | |p3d= is shift key pressed | |
− | + | |p3v= | |
− | | | + | |p4n= ctrl |
+ | |p4t= boolean | ||
+ | |p4d= is ctrl key pressed | ||
+ | |p4v= | ||
− | | | + | |p5n= alt |
− | | | + | |p5t= boolean |
− | | | + | |p5d= is alt key pressed |
− | | | + | |p5v= |
− | |||
− | |||
− | |||
− | |||
− | |||
|r1t= | |r1t= | ||
|r1d= | |r1d= | ||
− | |x1= <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; }];