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