BIS fnc 3den onKeyDown: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
m (Some wiki formatting)
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


|game1= arma3
|game1= arma3
|version1= 1.56
|version1= 1.56


|gr1 = KeyframeAnimation
|gr1= KeyframeAnimation


<!--|serverExec= server-->
|descr= Used internally by the [[Arma 3: Key Frame Animation]] system. Called when a button is pressed.


<!--|arg= local-->
|s1= [display, button, shift, ctrl, alt] call [[BIS_fnc_3den_onKeyDown]]


<!--|eff= local-->
|p1= display: [[Display]] - the display


|descr= Used internally by the [[Arma 3 Key Frame Animation]] system. Called when a button is pressed.
|p2= button: [[Number]] - key code of the pressed button


|p3= shift: [[Boolean]] - {{Controls|Shift}} key


|s1= [display, button, shift, ctrl, alt] [[call]] [[BIS_fnc_3den_onKeyDown]]
|p4= ctrl: [[Boolean]] - {{Controls|Ctrl}} key


|p1= display: [[Display]] - The display
|p5= alt: [[Boolean]] - {{Controls|Alt}} key


|p2= button: [[Number]] - Key code of the pressed button
|r1= [[Boolean]] - whether or not to consume the input


|p3= shift: [[Boolean]] - SHIFT key
|x1= <sqf>findDisplay 313 displayAddEventHandler ["keyDown", { _this call BIS_fnc_3den_onKeyDown }];</sqf>
 
|p4= ctrl: [[Boolean]] - CTRL key
 
|p5= alt: [[Boolean]] - ALT key
 
|r1= [[Boolean]] - Whether or not to consume the input
 
|x1= <code>[[findDisplay]] 313 [[displayAddEventHandler]] ["keyDown", {[[_this]] [[call]] [[BIS_fnc_3den_onKeyDown]]}];</code>
 
|exec= call
 
|seealso= [[Arma 3 Key Frame Animation]]


|seealso= [[Arma 3: Key Frame Animation]]
}}
}}
[[Category:Functions|{{uc:3den_onKeyDown}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:3den_onKeyDown}}]]

Latest revision as of 10:38, 27 March 2024

Hover & click on the images for description

Description

Description:
Used internally by the Arma 3: Key Frame Animation system. Called when a button is pressed.
Execution:
call
Groups:
KeyframeAnimation

Syntax

Syntax:
[display, button, shift, ctrl, alt] call BIS_fnc_3den_onKeyDown
Parameters:
display: Display - the display
button: Number - key code of the pressed button
shift: Boolean - ⇧ Shift key
ctrl: Boolean - Ctrl key
alt: Boolean - Alt key
Return Value:
Boolean - whether or not to consume the input

Examples

Example 1:
findDisplay 313 displayAddEventHandler ["keyDown", { _this call BIS_fnc_3den_onKeyDown }];

Additional Information

See also:
Arma 3: Key Frame Animation

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note