Interface GamepadButton
Properties
Readonlypressed
pressed: boolean
The GamepadButton.pressed property of the the button is currently pressed (true) or unpressed (false).
Readonlytouched
touched: boolean
The touched property of the a button capable of detecting touch is currently touched (true) or not touched (false).
Readonlyvalue
value: number
The GamepadButton.value property of the current state of analog buttons on many modern gamepads, such as the triggers.
The
GamepadButtoninterface defines an individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.MDN Reference