BIS fnc 3den onKeyUp: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (Text replacement - "Arma 3 Key Frame Animation" to "Key Frame Animation")
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.56


|1.56|Game version=
|gr1= KeyframeAnimation


<!---|arg= local |Multiplayer Arguments=--->
|descr= Used internally by the [[Arma 3: Key Frame Animation|Key Frame Animation]] system. Called when a button is released.


<!---|eff= local |Multiplayer Effects=--->
|s1= [display, button, shift, ctrl, alt] call [[BIS_fnc_3den_onKeyUp]]


| <pre>/*
|p1= display: [[Display]] - the display
Author: Nelson Duarte <@Nelson_G_Duarte>


Description:
|p2= button: [[Number]] - key code of the pressed button
A keyboard key is released in 3DEN


Parameter(s):
|p3= shift: [[Boolean]] - SHIFT key
_this select 0: Display - The display control
_this select 1: Scalar - The pressed button
_this select 2: Bool - State of SHIFT
_this select 3: Bool - State of CTRL
_this select 4: Bool - The state of ALT


Returns:
|p4= ctrl: [[Boolean]] - CTRL key
Bool - Whether or not to consume the input
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_3den_onKeyUp]]|Syntax=
|p5= alt: [[Boolean]] - ALT key


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|r1= [[Boolean]] - whether or not to consume the input


|Datatype - description|Return value=
|x1= <sqf>findDisplay 313 displayAddEventHandler ["keyUp", {_this call BIS_fnc_3den_onKeyUp}];</sqf>


|x1= <code></code>|Example 1=
|seealso= [[Arma 3: Key Frame Animation|Key Frame Animation]]
 
|exec= call |Execution=
 
| |See also=
}}
}}
[[Category:Function Group: 3DEN|{{uc:3den_onKeyUp}}]]
[[Category:Functions|{{uc:3den_onKeyUp}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:3den_onKeyUp}}]]

Latest revision as of 21:52, 23 April 2024

Hover & click on the images for description

Description

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

Syntax

Syntax:
[display, button, shift, ctrl, alt] call BIS_fnc_3den_onKeyUp
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 ["keyUp", {_this call BIS_fnc_3den_onKeyUp}];

Additional Information

See also:
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