@shuttle-lib/core
Version:
NPM package to interact with the Shuttle devices
31 lines • 870 B
TypeScript
import type { ProductModelId } from './products.js';
export type ButtonStates = Map<number, boolean>;
export interface ShuttleEvents {
disconnected: [];
error: [err: any];
shuttle: [
/** Shuttle value. Range: -7 - 7 */
shuttle: number
];
jog: [
/** Value difference from last emitted event */
delta: number,
/** Jog value, range: 0-255 */
jogValue: number
];
down: [buttonIndex: number];
up: [buttonIndex: number];
}
export interface ShuttleInfo {
/** Id of the product */
productModelId: ProductModelId;
/** Name of the device */
name: string;
/** Vendor id of the HID device */
vendorId: number;
/** Product id of the HID device */
productId: number;
/** Interface number of the HID device */
interface: number;
}
//# sourceMappingURL=api.d.ts.map