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] Copy
Get the button state for the A button of the first connected gamepad:navigator.getGamepads()[0].buttons[xboxButtonMap.A]
Enum holds the index in the gamepad buttons array for standard xbox controller buttons
Example