[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

@@ -19,6 +19,7 @@ set_tests_properties(font-tests PROPERTIES
add_executable(lgmp-transport-tests
lgmp_transport_test.c
../src/kb_hid.c
)
target_link_libraries(lgmp-transport-tests
${EXE_FLAGS}