gameplate - v2.2.0
    Preparing search index...

    Interface GamepadOptions

    Options for createGamepad.

    interface GamepadOptions {
        deadzone?: number;
        getGamepads?: () => readonly (NativeGamepad | null)[];
    }
    Index

    Properties

    deadzone?: number

    Deadzone applied by axis (per-axis) and stick (radial). Default 0.1. Pass 0 to read raw values.

    getGamepads?: () => readonly (NativeGamepad | null)[]

    Snapshot getter. Defaults to navigator.getGamepads. Override for tests, for non-browser runtimes, or to swap in a recorded input stream.