ProtectedgamepadReadonlyononAnyButtonPress is an event that is triggered when any device button is pressed. Add observers and emit the event.
ReadonlyonEvent emitted when any axis is changed with the index of the axis and the value of the axis.
ReadonlyonEvent emitted when any button is pressed down with the index of the button.
ReadonlyonEvent emitted when any button is released with the index of the button.
Static ReadonlyDEAD_
GamepadDevice class represents a gamepad device connected to the browser. It provides events for button down, button up and axis change. It also polls the gamepad state and emits the events accordingly.