Difference between revisions of "VN fnc module UI gestureMenu KeyHandler"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - "call VN_" to "call [[VN_")
m (Some wiki formatting)
 
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
Argument(s): n/a
Effect(s): local

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; }];