Difference between revisions of "VN fnc revive keyDown"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (1 revision imported)
m (Lou Montana moved page VN fnc revive keydown to VN fnc revive keyDown: name standard)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|a= Ethan Johnson
+
|author= Ethan Johnson
  
|e=
+
|a= local
 +
 
 +
|e= local
  
 
|g1= advanced_revive_functions
 
|g1= advanced_revive_functions
  
|d= <pre>/*
+
|d= Key handler for the revive system. See also {{Biki|User_Interface_Event_Handlers#onKeyDown|KeyDown EH}}.
        FILE: fn_revive_keydown.sqf
 
        DATE: 18-05-2020
 
        AUTHOR: Ethan Johnson
 
 
 
        DESCRIPTION:
 
                Key handler for the revive system
 
        PARAMETERS:
 
                (0): DISPLAY - Display that the event handler is assigned to
 
                (1): NUMBER - Key that is being pressed
 
                (2): BOOL - Shift key pressed
 
                (3): BOOL - Ctrl key pressed
 
                (4): BOOL - Alt key pressed
 
        RETURNS:
 
                BOOL
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[VN_fnc_revive_keydown]];
+
|s= [display, key, shift, ctrl, alt] call [[VN_fnc_revive_keyDown]]
  
|p1n=
+
|p1n= display
|p1t=
+
|p1t= {{Biki|Display}} or {{Biki|Control}}
|p1d=
+
|p1d= EH display or control, unused
 
|p1v=
 
|p1v=
  
|p2n=
+
|p2n= key
|p2t=
+
|p2t= number
|p2d=
+
|p2d= pressed key
 
|p2v=
 
|p2v=
  
|r1t=
+
|p3n= shift
|r1d=
+
|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= boolean
 +
|r1d= {{Biki|true}} to intercept the original key function
  
|x1= <code>-</code>
+
|x1= <code>[findDisplay 46, 42, false, false, false] call [[VN_fnc_revive_keyDown]];</code>
 
}}
 
}}

Latest revision as of 18:19, 30 January 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): local
Effect(s): local

Description

Key handler for the revive system. See also KeyDown EH.

Syntax

Syntax
[display, key, shift, ctrl, alt] call VN_fnc_revive_keyDown
Parameters
display: Display or Control - 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
Boolean - true to intercept the original key function

Examples

Example 1
[findDisplay 46, 42, false, false, false] call VN_fnc_revive_keyDown;