Engine API Reference - v2.6.1
    Preparing search index...

    Class GamePadButton

    A GamePadButton stores information about a button from the Gamepad API.

    Index

    Properties

    pressed: boolean = false

    Whether the button is currently down.

    touched: boolean = false

    Whether the button is currently touched.

    value: number = 0

    The value for the button between 0 and 1, with 0 representing a button that is not pressed, and 1 representing a button that is fully pressed.

    wasPressed: boolean = false

    Whether the button was pressed.

    wasReleased: boolean = false

    Whether the button was released since the last update.

    wasTouched: boolean = false

    Whether the button was touched since the last update.