Skip to content

Controller

Defined in: Controller.ts:6

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.

D_PAD_LEFT: 0

Defined in: Controller.ts:7


D_PAD_RIGHT: 1

Defined in: Controller.ts:8


D_PAD_UP: 2

Defined in: Controller.ts:9


D_PAD_DOWN: 3

Defined in: Controller.ts:10


BUTTON_A: 4

Defined in: Controller.ts:13

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


BUTTON_B: 5

Defined in: Controller.ts:16

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


BUTTON_X: 6

Defined in: Controller.ts:19

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


BUTTON_Y: 7

Defined in: Controller.ts:22

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


BUMPER_LEFT: 8

Defined in: Controller.ts:25

Left shoulder button.


TRIGGER_LEFT: 9

Defined in: Controller.ts:27


STICK_LEFT: 10

Defined in: Controller.ts:28


BUMPER_RIGHT: 11

Defined in: Controller.ts:31

Right shoulder button.


TRIGGER_RIGHT: 12

Defined in: Controller.ts:33


STICK_RIGHT: 13

Defined in: Controller.ts:34


BUTTON_BACK: 14

Defined in: Controller.ts:37

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


BUTTON_START: 15

Defined in: Controller.ts:40

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