Expand description
Global input hooks — raw keyboard and mouse events captured system-wide, regardless of which window is focused.
This is the foundation for “keyboard driver / mouse driver” scenarios
(e.g. a Logitech G-Hub-style remapper): rdesktop owns the low-level hook and
forwards every event to a GlobalInputHandler, where application code can
observe, transform, or suppress it.
- Windows:
SetWindowsHookExWwithWH_KEYBOARD_LL+WH_MOUSE_LLon a dedicated message-pump thread. - macOS: a
CGEventTaponkCGHIDEventTap(seeinput_mac).
Structs§
- Global
Input - Platform-independent manager for global input hooks.
Enums§
- Global
Input Event - A single global input event.
- KeyState
- Pressed / released state for a key or mouse button.
- Mouse
Button - Mouse buttons reported by the low-level hook.
Traits§
- Global
Input Handler - Callback invoked for every global input event.