inputController

From Bohemia Interactive Community
Revision as of 18:01, 8 March 2022 by Lou Montana (talk | contribs) (Text replacement - " |version1= 2.08 |branch=dev" to " |version1= 2.08")
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

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 removeAllActions action

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