UNPKG

shuttle-webhid

Version:

An npm module for interfacing with the Contour Shuttle devices in Node.js

17 lines 635 B
import { HIDDevice as CoreHIDDevice, HIDEvents } from '@shuttle-lib/core'; import { EventEmitter } from 'eventemitter3'; /** * The wrapped browser HIDDevice. * This translates it into the common format (@see CoreHIDDevice) defined by @shuttle-lib/core */ export declare class WebHIDDevice extends EventEmitter<HIDEvents> implements CoreHIDDevice { private readonly device; constructor(device: HIDDevice); close(): Promise<void>; write(data: number[]): void; private _cleanup; private _handleInputReport; private _handleError; private _handleDisconnect; } //# sourceMappingURL=web-hid-wrapper.d.ts.map