Skip to main content

Controller

These enums loop after 31, so 32 = D_PAD_LEFT, 63 = D_PAD_LEFT, and so on.

There appears to be no input key for joystick movement.

Enumeration Members

D_PAD_LEFT

D_PAD_LEFT = 0

Defined in

Controller.ts:7


D_PAD_RIGHT

D_PAD_RIGHT = 1

Defined in

Controller.ts:8


D_PAD_UP

D_PAD_UP = 2

Defined in

Controller.ts:9


D_PAD_DOWN

D_PAD_DOWN = 3

Defined in

Controller.ts:10


BUTTON_A

BUTTON_A = 4

A, X and B on Xbox, Playstation and Nintendo respectively.

Defined in

Controller.ts:13


BUTTON_B

BUTTON_B = 5

B, O and A on Xbox, Playstation and Nintendo respectively.

Defined in

Controller.ts:16


BUTTON_X

BUTTON_X = 6

X, □ and Y on Xbox, Playstation and Nintendo respectively.

Defined in

Controller.ts:19


BUTTON_Y

BUTTON_Y = 7

Y, Δ and X on Xbox, Playstation and Nintendo respectively.

Defined in

Controller.ts:22


BUMPER_LEFT

BUMPER_LEFT = 8

Left shoulder button.

Defined in

Controller.ts:25


TRIGGER_LEFT

TRIGGER_LEFT = 9

Defined in

Controller.ts:27


STICK_LEFT

STICK_LEFT = 10

Defined in

Controller.ts:28


BUMPER_RIGHT

BUMPER_RIGHT = 11

Right shoulder button.

Defined in

Controller.ts:31


TRIGGER_RIGHT

TRIGGER_RIGHT = 12

Defined in

Controller.ts:33


STICK_RIGHT

STICK_RIGHT = 13

Defined in

Controller.ts:34


BUTTON_BACK

BUTTON_BACK = 14

Select, Share and - on Xbox, Playstation and Nintendo respectively.

Defined in

Controller.ts:37


BUTTON_START

BUTTON_START = 15

Start, Options and + on Xbox, Playstation and Nintendo respectively.

Defined in

Controller.ts:40