Table of Contents

Enum ControllerButtons

Namespace
Fantas.Input
Assembly
Fantas.dll

Defines the buttons on gamepad.

[Flags]
public enum ControllerButtons

Fields

A = 4096

A button (the lower button)

B = 8192

B button (button on the right)

BigButton = 2048

Big button (like the big X in the Xbox 360)

DPadDown = 2

Directional pad down.

DPadLeft = 4

Directional pad left.

DPadRight = 8

Directional pad right.

DPadUp = 1

Directional pad up.

LeftShoulder = 256

Left bumper (shoulder) button.

LeftThumbstick = 64

Left thumb stick button (pressing the left thumb stick).

LeftThumbstickDown = 536870912

Left thumb stick is towards down.

LeftThumbstickLeft = 2097152

Left thumb stick is towards the left.

LeftThumbstickRight = 1073741824

Left thumb stick is towards the right.

LeftThumbstickUp = 268435456

Left thumb stick is towards up.

LeftTrigger = 8388608

Left trigger

Menu = 16

START or MENU button (depending on your GamePad)

None = 0

Use to flag no button is pressed

Options = 32

BACK or Options button (depending on your GamePad)

RightShoulder = 512

Right bumper (shoulder) button.

RightThumbstick = 128

Right thumb stick button (pressing the right thumb stick).

RightThumbstickDown = 33554432

Right thumb stick is towards down.

RightThumbstickLeft = 134217728

Right thumb stick is towards the left.

RightThumbstickRight = 67108864

Right thumb stick is towards the right.

RightThumbstickUp = 16777216

Right thumb stick is towards up.

RightTrigger = 4194304

Right trigger.

X = 16384

X button (button on the left)

Y = 32768

Y button (upper button)