Version:
interface

InputMonitor

An InputMonitor provides methods to observe system-level input events
such as keyboard and mouse activity

typescript
interface InputMonitor

Properties

NameTypeDescription
connectEmitter(emitFn: (eventType: E, args: Parameters<unknown[unknown]>) => ReturnType) => voidConnects an event emitter function to forward captured input events
startMonitoringInput() => voidStarts monitoring system input events
stopMonitoringInput() => voidStops monitoring system input events

Was this page helpful?