inputController

From Bohemia Interactive Community
Revision as of 17:41, 20 January 2022 by Lou Montana (talk | contribs) (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.08.

Description

Description:
Returns the state of controller inputs. The controller is a standard XBOX controller which is selected with Windows XBOX controller scheme. The input could be:
  • XBOX_A 0
  • XBOX_B 1
  • XBOX_X 2
  • XBOX_Y 3
  • XBOX_Up 4
  • XBOX_Down 5
  • XBOX_Left 6
  • XBOX_Right 7
  • XBOX_Start 8
  • XBOX_Back 9
  • XBOX_LeftBumper 10
  • XBOX_RightBumper 11
  • XBOX_LeftTrigger 12
  • XBOX_RightTrigger 13
  • XBOX_LeftThumb 14
  • XBOX_RightThumb 15
  • XBOX_LeftThumbXRight 16
  • XBOX_LeftThumbYUp 17
  • XBOX_RightThumbXRight 18
  • XBOX_RightThumbYUp 19
  • XBOX_LeftThumbXLeft 20
  • XBOX_LeftThumbYDown 21
  • XBOX_RightThumbXLeft 22
  • XBOX_RightThumbYDown 23
Groups:
Interaction

Syntax

Syntax:
inputController input
Parameters:
input: Number - controller input 0...31 (see description) or -1 for controller detection.
Return Value:
Number - value of the controller input 0...1. When input is -1, return is 1 if controller is available, 0 - if controller is unavailable

Examples

Example 1:
State of the fire trigger:onEachFrame { hintSilent str inputController 13 };

Additional Information

See also:
inputMouse inputAction actionKeys actionKeysImages actionKeysNames actionIDs actionParams addAction setUserActionText inGameUISetEventHandler showHUD removeAction removeAllActionsaction

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