inputAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (+link)
(syntax, example, seealso)
Line 12: Line 12:
| '''inputAction''' name |= Syntax
| '''inputAction''' name |= Syntax


|p1= name: - |= PARAMETER1  
|p1= name: [[String]] - name of the action |= PARAMETER1  


|p2= |= PARAMETER2
| [[Number]] |= RETURNVALUE


|p3= |= PARAMETER3
| [[Number]] |= RETURNVALUE


|x1= <code>'''inputAction''' "leanLeft"</code> Returns 1 if the button mapped to "leanLeft" is pressed currently else 0. |= EXAMPLE1


|x1= <code>(example)</code>|= EXAMPLE1


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[actionKeys]], [[actionKeysImages]], [[actionKeysNames]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 20:44, 12 November 2009

Hover & click on the images for description

Description

Description:
Return the state of input devices mapped to given input action (see ArmA:_CfgDefaultKeysMapping for action names).
Groups:
Uncategorised

Syntax

Syntax:
inputAction name
Parameters:
name: String - name of the action
Return Value:
Number

Examples

Example 1:
inputAction "leanLeft" Returns 1 if the button mapped to "leanLeft" is pressed currently else 0.

Additional Information

See also:
actionKeysactionKeysImagesactionKeysNames

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

Notes

Bottom Section