ecspresso
    Preparing search index...

    Interface GamepadLike

    Minimal gamepad shape required by the injectable poll function. A structural subset of the browser Gamepad interface — navigator.getGamepads() satisfies it directly, and test doubles can supply just these fields.

    interface GamepadLike {
        axes: readonly number[];
        buttons: readonly { pressed: boolean; value: number }[];
        connected: boolean;
        id: string;
    }
    Index

    Properties

    axes: readonly number[]
    buttons: readonly { pressed: boolean; value: number }[]
    connected: boolean
    id: string