rednode API - v0.80.1
    Preparing search index...

    Interface GamepadState

    The controller after a change.

    interface GamepadState {
        buttons: GamepadButton[];
        connected: boolean;
        lt: number;
        pressed: GamepadButton[];
        released: GamepadButton[];
        rt: number;
    }
    Index
    buttons: GamepadButton[]

    Every button held now.

    connected: boolean

    False when the controller was unplugged or turned off (then nothing is held).

    lt: number

    The left trigger, 0 (let go) to 1 (pressed all the way). Sent in steps of about 1/16.

    pressed: GamepadButton[]

    The buttons that went down with this change.

    released: GamepadButton[]

    The buttons that came up with this change.

    rt: number

    The right trigger, 0 to 1.