Skip to contentSkip to conversation

ui: Add more mouse buttons to SPICE

PATCH In review Frediano Ziglio 2 participants 2 messages Aug 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui: Add more mouse buttons to SPICE

From: Frediano Ziglio <[email protected]>

Add support for SIDE and EXTRA buttons.

---
 ui/spice-input.c | 2 ++
 1 file changed, 2 insertions(+)
ui/spice-input.c +2 -0
index cd4bb0043f..d5bba231c9 100644
@@ -123,6 +123,8 @@ static void spice_update_buttons(QemuSpicePointer *pointer,
         [INPUT_BUTTON_RIGHT]       = 0x02,
         [INPUT_BUTTON_WHEEL_UP]    = 0x10,
         [INPUT_BUTTON_WHEEL_DOWN]  = 0x20,
+        [INPUT_BUTTON_SIDE]        = 0x40,
+        [INPUT_BUTTON_EXTRA]       = 0x80,
     };
 
     if (wheel < 0) {
Signature · 1 line
2.25.4
#1 lore raw

Hi

Quoted 23 lines · Frediano Ziglio

From: Frediano Ziglio <[email protected]>

Add support for SIDE and EXTRA buttons.

---
 ui/spice-input.c | 2 ++
 1 file changed, 2 insertions(+)
ui/spice-input.c +2 -0
index cd4bb0043f..d5bba231c9 100644
@@ -123,6 +123,8 @@ static void spice_update_buttons(QemuSpicePointer
 *pointer,
         [INPUT_BUTTON_RIGHT]       = 0x02,
         [INPUT_BUTTON_WHEEL_UP]    = 0x10,
         [INPUT_BUTTON_WHEEL_DOWN]  = 0x20,
+        [INPUT_BUTTON_SIDE]        = 0x40,
+        [INPUT_BUTTON_EXTRA]       = 0x80,
     };
 
     if (wheel < 0) {
Quoted 4 lines

--
2.25.4

I don't see where those values are defined, can you describe it a bit?

thanks

Signature · 1 line
Marc-André Lureau