wlroots-hyprland/backend/libinput
José Expósito c84cc660f0 build: check if libinput supports high-res scroll
Starting with Linux Kernel v5.0 two new axes are available for
mice that support high-resolution wheel scrolling: REL_WHEEL_HI_RES and
REL_HWHEEL_HI_RES.

Both axes send data in fractions of 120 where each multiple of 120
amounts to one logical scroll event. Fractions of 120 indicate a wheel
movement less than one detent.

Three new events are now available on libinput:
LIBINPUT_EVENT_POINTER_SCROLL_WHEEL,
LIBINPUT_EVENT_POINTER_SCROLL_FINGER, and
LIBINPUT_EVENT_POINTER_SCROLL_CONTINUOUS.
These events replace the LIBINPUT_EVENT_POINTER_AXIS event, so new
clients should simply ignore that event.

Also, two new APIs are available to access the high-resolution data:
libinput_event_pointer_get_scroll_value() and
libinput_event_pointer_get_scroll_value_v120().

Add a project argument (LIBINPUT_HAS_SCROLL_VALUE120) to allow
building against old versions of libinput or, where high-resolution
scroll is available, support it.
2022-07-11 11:01:35 +02:00
..
backend.c wlr_input_device: remove anon union field 2022-06-21 18:42:07 +00:00
events.c wlr_input_device: remove anon union field 2022-06-21 18:42:07 +00:00
keyboard.c types/wlr_keyboard: uniformize events name 2022-03-17 18:16:14 +00:00
meson.build build: check if libinput supports high-res scroll 2022-07-11 11:01:35 +02:00
pointer.c types/wlr_pointer: uniformize events name 2022-03-17 18:16:14 +00:00
switch.c types/wlr_switch: uniformize events name 2022-03-17 18:16:14 +00:00
tablet_pad.c types/wlr_tablet_pad: uniformize events name 2022-03-17 18:16:14 +00:00
tablet_tool.c types/wlr_tablet_tool: uniformize events name 2022-03-17 18:16:14 +00:00
touch.c types/wlr_touch: uniformize events name 2022-03-17 18:16:14 +00:00