Skip to main content

Variable: gamepadButtons

const gamepadButtons: object

Defined in: input/constants/gamepad-buttons.ts:6

A mapping of human-readable button names to their corresponding indices in the W3C Standard Gamepad's buttons array.

Type Declaration​

dpadDown​

readonly dpadDown: 13 = 13

dpadLeft​

readonly dpadLeft: 14 = 14

dpadRight​

readonly dpadRight: 15 = 15

dpadUp​

readonly dpadUp: 12 = 12

faceButtonBottom​

readonly faceButtonBottom: 0 = 0

faceButtonLeft​

readonly faceButtonLeft: 2 = 2

faceButtonRight​

readonly faceButtonRight: 1 = 1

faceButtonTop​

readonly faceButtonTop: 3 = 3

home​

readonly home: 16 = 16

leftShoulder​

readonly leftShoulder: 4 = 4

leftStick​

readonly leftStick: 10 = 10

leftTrigger​

readonly leftTrigger: 6 = 6

rightShoulder​

readonly rightShoulder: 5 = 5

rightStick​

readonly rightStick: 11 = 11

rightTrigger​

readonly rightTrigger: 7 = 7

select​

readonly select: 8 = 8

start​

readonly start: 9 = 9

See​

https://www.w3.org/TR/gamepad/#remapping