Magic Mouse Windows 11 Driver -

if (touch != 0 && Math.Abs(scroll) > 0) // Scroll mouse_event(MOUSEEVENTF_WHEEL, 0, 0, scroll, 0);

Example pseudo-parser:

struct MagicMouseReport bool touch_active; int8_t delta_x; int8_t delta_y; int8_t scroll_v; int8_t scroll_h; ; if (report.touch_active && abs(report.delta_x) < 2) // Interpret as scroll SendScroll(report.scroll_v, report.scroll_h); else // Interpret as mouse move SendMouseMove(report.delta_x, report.delta_y); magic mouse windows 11 driver