GamepadButton : Object
Represents a button on the %%/Gamepad|Gamepad%%.
Spec:
https://w3c.github.io/gamepad/#gamepadbutton-interface
----
instance.pressed : Boolean
**true** if the button was pressed. For buttons that support %%#value|**value**%%,
**pressed** will be **true** when **value** passes a platform/browser specified
threshold.
Press button on controller to connect.
ReadOnly:
true
Spec:
https://w3c.github.io/gamepad/#dom-gamepadbutton-pressed
----
instance.touched : Boolean
**true** if the user is touching the button but not necessarily pressing the button.
For hardware that cannot detech touches, will be **true** when the user is pressing
the button.
Press button on controller to connect.
ReadOnly:
true
Spec:
https://w3c.github.io/gamepad/#dom-gamepadbutton-touched
----
instance.value : Number
The pressure that the button was pressed with between **0** (light press) and **1** (hard press).
If the button doesn't measure pressure, will be **0** when unpressed and **1** when pressed.
Press button on controller to connect.
ReadOnly:
true
Spec:
https://w3c.github.io/gamepad/#dom-gamepadbutton-value