---
name: "inputController"
type: command
status: ok
groups: ["Interaction"]
arma3_since: "2.08"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/inputController
revid: 338923
updated: 2023-04-17T15:23:03Z
---

# inputController

*Command · Interaction · Arma 3 v2.08*

## Description

Returns the state of controller inputs. The controller is a standard XBOX controller which is selected with Windows XBOX controller scheme. The input can 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

## Syntax

```sqf
inputController input
```

**Parameters:**

- `input`: [Number](../topics/Number.md) - controller input 0...31 (see description) or -1 for controller detection.

**Returns:** [Number](../topics/Number.md) - 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:

```sqf
onEachFrame { hintSilent str inputController 13 };
```

## See also

[inputMouse](../commands/inputMouse.md) · [inputAction](../commands/inputAction.md) · [actionKeys](../commands/actionKeys.md) · [actionKeysImages](../commands/actionKeysImages.md) · [actionKeysNames](../commands/actionKeysNames.md) · [actionIDs](../commands/actionIDs.md) · [actionParams](../commands/actionParams.md) · [addAction](../commands/addAction.md) · [setUserActionText](../commands/setUserActionText.md) · [inGameUISetEventHandler](../commands/inGameUISetEventHandler.md) · [showHUD](../commands/showHUD.md) · [removeAction](../commands/removeAction.md) · [removeAllActions](../commands/removeAllActions.md) · [action](../commands/action.md)

<sub>Source: [BI Community Wiki — inputController](https://community.bistudio.com/wiki/inputController) (revision 338923).</sub>
