UNPKG

xkeys-webhid

Version:

An npm module for interfacing with the X-keys panels in a browser

12 lines 635 B
/// <reference types="w3c-web-hid" /> import { XKeys } from '@xkeys-lib/core'; /** Prompts the user for which X-keys panel to select */ export declare function requestXkeysPanels(): Promise<HIDDevice[]>; /** * Reopen previously selected devices. * The browser remembers what the user previously allowed your site to access, and this will open those without the request dialog */ export declare function getOpenedXKeysPanels(): Promise<HIDDevice[]>; /** Sets up a connection to a HID device (the X-keys panel) */ export declare function setupXkeysPanel(browserDevice: HIDDevice): Promise<XKeys>; //# sourceMappingURL=methods.d.ts.map