BIS fnc 3den onKeyDown: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "<code>(.*)\[\[Magic Variables#this\|_this\]\](.*)<\/code>" to "<code>$1_this$2</code>")  | 
				Lou Montana (talk | contribs)  m (Some wiki formatting)  | 
				||
| (4 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
|gr1= KeyframeAnimation  | |gr1= KeyframeAnimation  | ||
|descr= Used internally by the [[Arma 3 Key Frame Animation]] system. Called when a button is pressed.  | |descr= Used internally by the [[Arma 3: Key Frame Animation]] system. Called when a button is pressed.  | ||
|s1= [display, button, shift, ctrl, alt] call [[BIS_fnc_3den_onKeyDown]]  | |s1= [display, button, shift, ctrl, alt] call [[BIS_fnc_3den_onKeyDown]]  | ||
|p1= display: [[Display]] -   | |p1= display: [[Display]] - the display  | ||
|p2= button: [[Number]] -   | |p2= button: [[Number]] - key code of the pressed button  | ||
|p3= shift: [[Boolean]] -   | |p3= shift: [[Boolean]] - {{Controls|Shift}} key  | ||
|p4= ctrl: [[Boolean]] -   | |p4= ctrl: [[Boolean]] - {{Controls|Ctrl}} key  | ||
|p5= alt: [[Boolean]] -   | |p5= alt: [[Boolean]] - {{Controls|Alt}} key  | ||
|r1= [[Boolean]] -   | |r1= [[Boolean]] - whether or not to consume the input  | ||
|x1= <  | |x1= <sqf>findDisplay 313 displayAddEventHandler ["keyDown", { _this call BIS_fnc_3den_onKeyDown }];</sqf>  | ||
|seealso= [[Arma 3 Key Frame Animation]]  | |seealso= [[Arma 3: Key Frame Animation]]  | ||
}}  | }}  | ||
Latest revision as of 10:38, 27 March 2024
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:
 
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