ecspresso
    Preparing search index...

    Interface GamepadOptions

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

    Properties

    Properties

    deadzone?: number

    Radial deadzone applied to stick pairs (axes 0,1 and 2,3). Value in [0, 1]. Default: 0.15.

    poll?: () => readonly (GamepadLike | null)[]

    Custom poll function returning up to 4 gamepad slots. Defaults to navigator.getGamepads(). Primarily an injection point for tests; in the browser the default is correct.