UNPKG

xkeys

Version:

An npm module for interfacing with the X-keys panels in Node.js

15 lines 711 B
import { XKeys } from '@xkeys-lib/core'; import * as HID from 'node-hid'; import { HID_Device } from './api'; /** * Sets up a connection to a HID device (the X-keys panel) * * If called without arguments, it will select any connected X-keys panel. */ export declare function setupXkeysPanel(): Promise<XKeys>; export declare function setupXkeysPanel(HIDDevice: HID.Device): Promise<XKeys>; export declare function setupXkeysPanel(HIDAsync: HID.HIDAsync): Promise<XKeys>; export declare function setupXkeysPanel(devicePath: string): Promise<XKeys>; /** Returns a list of all connected X-keys-HID-devices */ export declare function listAllConnectedPanels(): HID_Device[]; //# sourceMappingURL=methods.d.ts.map