Wayland: Improve support for discrete scrolling

This adds support for high-resolution scroll input scaled to match
legacy discrete scroll input.  It is available on compositors that
support wl_seat version 8 or later.

High-resolution "discrete" values now replace non-scaled scroll
values when available.
This commit is contained in:
Camilla Löwy
2026-02-05 20:05:19 +01:00
parent 0d15b54c7a
commit 05f57c0bee
4 changed files with 30 additions and 8 deletions
+2
View File
@@ -478,6 +478,8 @@ typedef struct _GLFWlibraryWayland
double pointerY;
double scrollX;
double scrollY;
double discreteX;
double discreteY;
int button;
int action;
} pending;