[client] wayland: pass mouse wheel motion events to imgui

This commit is contained in:
Quantum 2021-07-30 07:02:13 -04:00 committed by Geoffrey McRae
parent 7ca5e14938
commit 72ccd44681

View File

@ -93,6 +93,7 @@ static void pointerAxisHandler(void * data, struct wl_pointer * pointer,
4 /* SPICE_MOUSE_BUTTON_UP */; 4 /* SPICE_MOUSE_BUTTON_UP */;
app_handleButtonPress(button); app_handleButtonPress(button);
app_handleButtonRelease(button); app_handleButtonRelease(button);
app_handleWheelMotion(wl_fixed_to_double(value) / 15.0);
} }
static int mapWaylandToSpiceButton(uint32_t button) static int mapWaylandToSpiceButton(uint32_t button)