MAIDR JavaScript API
    Preparing search index...

    Interface Hid

    navigator.hid.

    interface Hid {
        requestDevice: (
            options: { filters: readonly HidDeviceFilter[] },
        ) => Promise<HidDevice[]>;
        getDevices: () => Promise<HidDevice[]>;
        addEventListener: (
            type: "disconnect",
            listener: (event: HidConnectionEvent) => void,
        ) => void;
    }
    Index

    Properties

    requestDevice: (
        options: { filters: readonly HidDeviceFilter[] },
    ) => Promise<HidDevice[]>
    getDevices: () => Promise<HidDevice[]>
    addEventListener: (
        type: "disconnect",
        listener: (event: HidConnectionEvent) => void,
    ) => void