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

interface GamepadButton {
    pressed: boolean;
    touched: boolean;
    value: number;
}

Properties

Properties

pressed: boolean
touched: boolean
value: number