[client] input: forward extended mouse buttons

Map the remaining Linux mouse buttons through Wayland and evdev.

Use one X11 translation for cooked and raw press and release events.

Ignore unsupported horizontal scrolling and extended SPICE buttons.
This commit is contained in:
Geoffrey McRae
2026-08-09 02:50:02 +10:00
parent efa1b1bbee
commit 48f0b66a4f
5 changed files with 57 additions and 24 deletions

View File

@@ -59,11 +59,17 @@ static bool spiceMouseMotion(void * opaque, int32_t x, int32_t y)
static bool spiceMousePress(void * opaque, unsigned int button)
{
if (button > 7)
return true;
return purespice_mousePress(button);
}
static bool spiceMouseRelease(void * opaque, unsigned int button)
{
if (button > 7)
return true;
return purespice_mouseRelease(button);
}