buttons property

Array of states for the buttons supported by the gamepad device.

This property is read-only.

Syntax


var abnBtnStates = gamepad.buttons;

Property values

Type: GamepadButton

An array of GamepadButton objects representing the state of the corresponding button on the gamepad device.

See also

gamepad

 

 

Show: