Table of Contents

Enum GamepadButton

Namespace
BSGameLib.Game.Input
Assembly
BSGameLib.Game.dll

A button on a gamepad, named by its place on an Xbox-style layout.

public enum GamepadButton

Fields

A = 1

The south face button: A on Xbox, Cross on PlayStation.

B = 2

The east face button: B on Xbox, Circle on PlayStation.

Back = 5

The Back button, also called View.

DpadDown = 13

The down direction of the D-pad.

DpadLeft = 14

The left direction of the D-pad.

DpadRight = 15

The right direction of the D-pad.

DpadUp = 12

The up direction of the D-pad.

Guide = 6

The Guide button: the Xbox button, or the PlayStation or Switch home button.

LeftShoulder = 10

The left shoulder button.

LeftStick = 8

Pressing the left stick.

Misc1 = 16

An extra button, such as the Share button on Xbox controllers.

Paddle1 = 17

A back paddle, on controllers that have them. SDL's right paddle 1.

Paddle2 = 18

A back paddle, on controllers that have them. SDL's left paddle 1.

Paddle3 = 19

A back paddle, on controllers that have them. SDL's right paddle 2.

Paddle4 = 20

A back paddle, on controllers that have them. SDL's left paddle 2.

RightShoulder = 11

The right shoulder button.

RightStick = 9

Pressing the right stick.

Start = 7

The Start button, also called Menu.

Touchpad = 21

The touchpad, pressed as a button.

Unknown = 0

A button SDL does not map.

X = 3

The west face button: X on Xbox, Square on PlayStation.

Y = 4

The north face button: Y on Xbox, Triangle on PlayStation.