UNPKG

spacemouse-webhid

Version:

An npm module for interfacing with the SpaceMouse devices in a browser

11 lines 618 B
import { SpaceMouse } from '@spacemouse-lib/core'; /** Prompts the user for which SpaceMouse device to select */ export declare function requestSpaceMice(): 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 getOpenedSpaceMice(): Promise<HIDDevice[]>; /** Sets up a connection to a HID device (the SpaceMouse device) */ export declare function setupSpaceMouse(browserDevice: HIDDevice): Promise<SpaceMouse>; //# sourceMappingURL=methods.d.ts.map