Read and pass along REL_WHEEL_HI_RES from evdev
This field will be used to improve scroll accuracy where the mouse
supports high-resolution vertical scroll events. The equivalent field
for horizontal scrolling (REL_HWHEEL_HI_RES) could be added too, but
there are currently no mice that support high-resolution horizontal
scrolling in Linux, so I couldn't test it.
TEST=Connect a mouse with a high-resolution wheel (in this case the
Logitech Anywhere MX) to the DUT, and check that the gestures
library can read high-resolution data. Connecting a mouse with a
low-resolution wheel should still result in "high-resolution" data
being passed, it'll just always be 120 times the low-resolution
value.
BUG=chromium:888172
Change-Id: Iff94474681e54139107ea4685ea102424d89d93e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/libevdev/+/1978148
Commit-Queue: Harry Cutts <hcutts@chromium.org>
Tested-by: Harry Cutts <hcutts@chromium.org>
Reviewed-by: Sean O'Brien <seobrien@chromium.org>
2 files changed