@shuttle-lib/core
Version:
NPM package to interact with the Shuttle devices
26 lines • 767 B
TypeScript
export type ButtonStates = Map<number, boolean>;
export interface ShuttleEvents {
disconnected: () => void;
error: (err: any) => void;
shuttle: (
/** Shuttle value. Range: -1 - 7 */
shuttle: number) => void;
jog: (
/** Value difference from last emitted event */
delta: number,
/** Jog value, range: 0-255 */
jogValue: number) => void;
down: (buttonIndex: number) => void;
up: (buttonIndex: number) => void;
}
export interface ShuttleInfo {
/** 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