Returns if the button is pressed down or not. The index must be valid within the range of buttons supported by this Gamepad.
name | type | description |
---|---|---|
index | number |
The index of the button to get the value for. |
true
if the button is considered as being pressed down, otherwise false
.