Understand Uiohook event data structures
masterDepending on the event type, uIOhook emits different data structures. All events include modifier state (altKey, ctrlKey, metaKey, shiftKey) and a timestamp (time).
UiohookKeyboardEvent
Used for keydown and keyup.
keycode: The numeric code of the key.
UiohookMouseEvent
Used for mousedown, mouseup, mousemove, and click.
x,y: Coordinates of the mouse.button: The mouse button involved.clicks: Number of clicks.
UiohookWheelEvent
Used for wheel.
x,y: Coordinates of the wheel event.amount: Scroll amount.direction:WheelDirection(VERTICAL= 3,HORIZONTAL= 4).rotation: Rotation value.