VN_fnc_module_UI_gestureMenu_KeyHandler

From Savage Game Design Wiki
Revision as of 20:17, 26 February 2021 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← 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; }];