Gamepad module

Gamepad_Code

enumSource

The buttons of a controller. Index Gamepad.buttons with it. A, B, X and Y are the face buttons by their Xbox names; sticks and triggers also appear here as buttons, once they pass their thresholds.

Example↗
assert(Gamepad_Code.A == .FACE_DOWN);
assert(cast(int) Gamepad_Code.DPAD_UP == 0);

Members

DPAD_UP
DPAD_DOWN
DPAD_LEFT
DPAD_RIGHT
START
BACK
LEFT_SHOULDER
RIGHT_SHOULDER
LEFT_TRIGGER
RIGHT_TRIGGER
FACE_DOWN
FACE_RIGHT
FACE_LEFT
FACE_UP
LEFT_STICK_UP
LEFT_STICK_DOWN
LEFT_STICK_LEFT
LEFT_STICK_RIGHT
RIGHT_STICK_UP
RIGHT_STICK_DOWN
RIGHT_STICK_LEFT
RIGHT_STICK_RIGHT
LEFT_STICK_CLICK
RIGHT_STICK_CLICK
A
B
X
Y

See also