GamepadButton Enum
Defines the standard gamepad button codes using Xbox-style layout conventions. These mappings are cross-platform compatible with PlayStation and other controller types.
public enum GamepadButton
Fields¶
Unknown 0
Unknown or unmapped gamepad button.
A 1
The bottom face button (Xbox A, PlayStation Cross).
B 2
The right face button (Xbox B, PlayStation Circle).
X 3
The left face button (Xbox X, PlayStation Square).
Y 4
The top face button (Xbox Y, PlayStation Triangle).
Back 5
The back/select button (Xbox Back, PlayStation Select).
Guide 6
The guide/home button (Xbox Guide, PlayStation PS button).
Start 7
The start/options button (Xbox Start, PlayStation Start).
LeftStick 8
The left analog stick button (L3).
RightStick 9
The right analog stick button (R3).
LeftShoulder 10
The left shoulder button (LB, L1).
RightShoulder 11
The right shoulder button (RB, R1).
DPadUp 12
The directional pad up button.
DPadDown 13
The directional pad down button.
DPadLeft 14
The directional pad left button.
DPadRight 15
The directional pad right button.