Enum GamepadButton
A button on a gamepad, named by its place on an Xbox-style layout.
public enum GamepadButton
Fields
A = 1The south face button: A on Xbox, Cross on PlayStation.
B = 2The east face button: B on Xbox, Circle on PlayStation.
Back = 5The Back button, also called View.
DpadDown = 13The down direction of the D-pad.
DpadLeft = 14The left direction of the D-pad.
DpadRight = 15The right direction of the D-pad.
DpadUp = 12The up direction of the D-pad.
Guide = 6The Guide button: the Xbox button, or the PlayStation or Switch home button.
LeftShoulder = 10The left shoulder button.
LeftStick = 8Pressing the left stick.
Misc1 = 16An extra button, such as the Share button on Xbox controllers.
Paddle1 = 17A back paddle, on controllers that have them. SDL's right paddle 1.
Paddle2 = 18A back paddle, on controllers that have them. SDL's left paddle 1.
Paddle3 = 19A back paddle, on controllers that have them. SDL's right paddle 2.
Paddle4 = 20A back paddle, on controllers that have them. SDL's left paddle 2.
RightShoulder = 11The right shoulder button.
RightStick = 9Pressing the right stick.
Start = 7The Start button, also called Menu.
Touchpad = 21The touchpad, pressed as a button.
Unknown = 0A button SDL does not map.
X = 3The west face button: X on Xbox, Square on PlayStation.
Y = 4The north face button: Y on Xbox, Triangle on PlayStation.