UNPKG

global-input-tracker

Version:

Cross-platform global mouse and keyboard event tracker for Node.js, built with Rust and powered by napi-rs. Detect system-wide key presses and mouse movements in real time.

11 lines (9 loc) 254 B
/* auto-generated by NAPI-RS */ /* eslint-disable */ export interface InputEvent { eventType: string payload?: string x?: number y?: number } export declare function startRootListener(callback: (err: Error | null, arg: InputEvent) => any): void