gameplate - v2.2.0
    Preparing search index...

    Interface NativeGamepad

    Minimal shape gameplate consumes from a platform gamepad. Structurally compatible with the DOM Gamepad interface — you can pass () => navigator.getGamepads() for getGamepads without casts.

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

    Properties

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