VN_fnc_holdkey
VN_fnc_holdkey
Function that exectues a user-defined code when a key has been held down for a long enough time.
Syntax
[_display,_keyToPress,_timeToPress,_code,_textControl] call VN_fnc_holdkey;Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
_display |
Display | findDisplay 12 |
On what display it should be working (map display is default) |
_keyToPress |
Number | 57 |
What key to press |
_timeToPress |
Number | 3 |
How long the key has to be held down |
_code |
Code | {} |
Code to be executed when key is held down for long enough |
_textControl |
Control | controlNull |
Text control to be used in place of the default “Press X to skip” control. |