Enum GamepadButton
Enum of common gamepad buttons.
Namespace: UnityEngine.InputSystem.LowLevel
Syntax
public enum GamepadButton
Remarks
Can be used as an array indexer on the Gamepad class to get individual button controls.
Fields
Name | Description | Value |
---|---|---|
DpadUp | The up button on a gamepad's dpad. |
0 |
DpadDown | The down button on a gamepad's dpad. |
1 |
DpadLeft | The left button on a gamepad's dpad. |
2 |
DpadRight | The right button on a gamepad's dpad. |
3 |
Y | The Y button on an Xbox controller. |
4 |
Triangle | The triangle button on a PlayStation controller. |
4 |
North | The upper action button on a gamepad. |
4 |
B | The B button on an Xbox controller. |
5 |
Circle | The circle button on a PlayStation controller. |
5 |
East | The right action button on a gamepad. |
5 |
South | The lower action button on a gamepad. |
6 |
A | The A button on an Xbox controller. |
6 |
Cross | The cross button on a PlayStation controller. |
6 |
Square | The square button on a PlayStation controller. |
7 |
West | The left action button on a gamepad. |
7 |
X | The X button on an Xbox controller. |
7 |
LeftStick | The button pressed by pressing down the left stick on a gamepad. |
8 |
RightStick | The button pressed by pressing down the right stick on a gamepad. |
9 |
LeftShoulder | The left shoulder button on a gamepad. |
10 |
RightShoulder | The right shoulder button on a gamepad. |
11 |
Start | The start button. |
12 |
Select | The select button. |
13 |
LeftTrigger | The left trigger button on a gamepad. |
32 |
RightTrigger | The right trigger button on a gamepad. |
33 |