Enumeration xboxButtonMap

Enum holds the index in the gamepad buttons array for standard xbox controller buttons

Get the button state for the A button of the first connected gamepad:
navigator.getGamepads()[0].buttons[xboxButtonMap.A]

Enumeration Members

A
B
Back
DPadDown
DPadLeft
DPadRight
DPadUp
LShoulder
LStick
LTrigger
RShoulder
RStick
RTrigger
Start
X
Xbox
Y