[client] input: send reports over LGMP

Use the LGMP input queue when the host advertises transport input,
while preserving SPICE fallback through the existing input abstraction.

Claim input lazily, publish ordered full-state keyboard and mouse
reports without blocking rendering, and keep the owner lease alive.
Reserve queue capacity for discrete transitions, coalesce only motion
under pressure, and release ownership safely during idle and disconnect.

Keep the Linux-to-HID map in the client and update LGMP to the
nonblocking data-send API required by the input worker.
This commit is contained in:
Geoffrey McRae
2026-08-09 01:03:41 +10:00
parent 726086a969
commit 27a938e741
10 changed files with 1118 additions and 2 deletions

View File

@@ -29,6 +29,7 @@
#define PS2_VOLUME_DOWN 0xE02E
extern const uint32_t linux_to_ps2[KEY_MAX];
extern const uint8_t linux_to_hid[KEY_MAX];
extern const char * linux_to_str[KEY_MAX];
extern const char * linux_to_display[KEY_MAX];
extern const int linux_to_imgui[KEY_MAX];