Input

Phaser.Input

UP

UP: number

Description:

D-Pad up

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L17
Since: 3.0.0

DOWN

DOWN: number

Description:

D-Pad down

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L27
Since: 3.0.0

LEFT

LEFT: number

Description:

D-Pad left

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L37
Since: 3.0.0

RIGHT: number

Description:

D-Pad right

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L47
Since: 3.0.0

SELECT

SELECT: number

Description:

Select button

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L57
Since: 3.0.0

START

START: number

Description:

Start button

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L67
Since: 3.0.0

B

B: number

Description:

B Button (Bottom)

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L77
Since: 3.0.0

A

A: number

Description:

A Button (Right)

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L87
Since: 3.0.0

Y

Y: number

Description:

Y Button (Left)

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L97
Since: 3.0.0

X

X: number

Description:

X Button (Top)

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L107
Since: 3.0.0

LEFT_SHOULDER

LEFT_SHOULDER: number

Description:

Left bumper

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L117
Since: 3.0.0

RIGHT_SHOULDER

RIGHT_SHOULDER: number

Description:

Right bumper

Source: src/input/gamepad/configs/SNES_USB_Controller.js#L127
Since: 3.0.0

UP

UP: number

Description:

D-Pad up

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L17
Since: 3.0.0

DOWN

DOWN: number

Description:

D-Pad down

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L27
Since: 3.0.0

LEFT

LEFT: number

Description:

D-Pad left

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L37
Since: 3.0.0

RIGHT

RIGHT: number

Description:

D-Pad up

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L47
Since: 3.0.0

SHARE

SHARE: number

Description:

Share button

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L57
Since: 3.0.0

OPTIONS

OPTIONS: number

Description:

Options button

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L67
Since: 3.0.0

PS

PS: number

Description:

PlayStation logo button

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L77
Since: 3.0.0

TOUCHBAR

TOUCHBAR: number

Description:

Touchpad click

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L87
Since: 3.0.0

X

X: number

Description:

Cross button (Bottom)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L97
Since: 3.0.0

CIRCLE

CIRCLE: number

Description:

Circle button (Right)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L107
Since: 3.0.0

SQUARE

SQUARE: number

Description:

Square button (Left)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L117
Since: 3.0.0

TRIANGLE

TRIANGLE: number

Description:

Triangle button (Top)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L127
Since: 3.0.0

L1

L1: number

Description:

Left bumper (L1)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L137
Since: 3.0.0

R1

R1: number

Description:

Right bumper (R1)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L147
Since: 3.0.0

L2

L2: number

Description:

Left trigger (L2)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L157
Since: 3.0.0

R2

R2: number

Description:

Right trigger (R2)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L167
Since: 3.0.0

L3

L3: number

Description:

Left stick click (L3)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L177
Since: 3.0.0

R3

R3: number

Description:

Right stick click (R3)

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L187
Since: 3.0.0

LEFT_STICK_H

LEFT_STICK_H: number

Description:

Left stick horizontal

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L197
Since: 3.0.0

LEFT_STICK_V

LEFT_STICK_V: number

Description:

Left stick vertical

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L207
Since: 3.0.0

RIGHT_STICK_H

RIGHT_STICK_H: number

Description:

Right stick horizontal

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L217
Since: 3.0.0

RIGHT_STICK_V

RIGHT_STICK_V: number

Description:

Right stick vertical

Source: src/input/gamepad/configs/Sony_PlayStation_DualShock_4.js#L227
Since: 3.0.0

UP

UP: number

Description:

D-Pad up

Source: src/input/gamepad/configs/XBox360_Controller.js#L16
Since: 3.0.0

DOWN

DOWN: number

Description:

D-Pad down

Source: src/input/gamepad/configs/XBox360_Controller.js#L26
Since: 3.0.0

LEFT

LEFT: number

Description:

D-Pad left

Source: src/input/gamepad/configs/XBox360_Controller.js#L36
Since: 3.0.0

RIGHT

RIGHT: number

Description:

D-Pad right

Source: src/input/gamepad/configs/XBox360_Controller.js#L46
Since: 3.0.0

Description:

XBox menu button

Source: src/input/gamepad/configs/XBox360_Controller.js#L56
Since: 3.0.0

A

A: number

Description:

A button (Bottom)

Source: src/input/gamepad/configs/XBox360_Controller.js#L66
Since: 3.0.0

B

B: number

Description:

B button (Right)

Source: src/input/gamepad/configs/XBox360_Controller.js#L76
Since: 3.0.0

X

X: number

Description:

X button (Left)

Source: src/input/gamepad/configs/XBox360_Controller.js#L86
Since: 3.0.0

Y

Y: number

Description:

Y button (Top)

Source: src/input/gamepad/configs/XBox360_Controller.js#L96
Since: 3.0.0

LB

LB: number

Description:

Left Bumper

Source: src/input/gamepad/configs/XBox360_Controller.js#L106
Since: 3.0.0

RB

RB: number

Description:

Right Bumper

Source: src/input/gamepad/configs/XBox360_Controller.js#L116
Since: 3.0.0

LT

LT: number

Description:

Left Trigger

Source: src/input/gamepad/configs/XBox360_Controller.js#L126
Since: 3.0.0

RT

RT: number

Description:

Right Trigger

Source: src/input/gamepad/configs/XBox360_Controller.js#L136
Since: 3.0.0

BACK

BACK: number

Description:

Back / Change View button

Source: src/input/gamepad/configs/XBox360_Controller.js#L146
Since: 3.0.0

START

START: number

Description:

Start button

Source: src/input/gamepad/configs/XBox360_Controller.js#L156
Since: 3.0.0

LS

LS: number

Description:

Left Stick press

Source: src/input/gamepad/configs/XBox360_Controller.js#L166
Since: 3.0.0

RS

RS: number

Description:

Right stick press

Source: src/input/gamepad/configs/XBox360_Controller.js#L176
Since: 3.0.0

LEFT_STICK_H

LEFT_STICK_H: number

Description:

Left Stick horizontal

Source: src/input/gamepad/configs/XBox360_Controller.js#L186
Since: 3.0.0

LEFT_STICK_V

LEFT_STICK_V: number

Description:

Left Stick vertical

Source: src/input/gamepad/configs/XBox360_Controller.js#L196
Since: 3.0.0

RIGHT_STICK_H

RIGHT_STICK_H: number

Description:

Right Stick horizontal

Source: src/input/gamepad/configs/XBox360_Controller.js#L206
Since: 3.0.0

RIGHT_STICK_V

RIGHT_STICK_V: number

Description:

Right Stick vertical

Source: src/input/gamepad/configs/XBox360_Controller.js#L216
Since: 3.0.0

Updated on