From c6032d6b1cc1cfb884924bb8afbdd200c3258d9a Mon Sep 17 00:00:00 2001 From: José Expósito Date: Fri, 25 Feb 2022 17:30:42 +0100 Subject: backend/libinput: handle high-res scroll events On newer versions of libinput, the event LIBINPUT_EVENT_POINTER_AXIS has been deprecated in favour of LIBINPUT_EVENT_POINTER_SCROLL_WHEEL, LIBINPUT_EVENT_POINTER_SCROLL_FINGER and LIBINPUT_EVENT_POINTER_SCROLL_CONTINUOUS. Where new events are provided by the backend, ignore LIBINPUT_EVENT_POINTER_AXIS, receive high-resolution scroll events from libinput and emit the appropiate wlr_pointer signal. --- include/backend/libinput.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/backend/libinput.h b/include/backend/libinput.h index 7c1dc30a..1ec94c2d 100644 --- a/include/backend/libinput.h +++ b/include/backend/libinput.h @@ -70,6 +70,10 @@ void handle_pointer_button(struct libinput_event *event, struct wlr_pointer *pointer); void handle_pointer_axis(struct libinput_event *event, struct wlr_pointer *pointer); +#if LIBINPUT_HAS_SCROLL_VALUE120 +void handle_pointer_axis_value120(struct libinput_event *event, + struct wlr_pointer *pointer, enum wlr_axis_source source); +#endif void handle_pointer_swipe_begin(struct libinput_event *event, struct wlr_pointer *pointer); void handle_pointer_swipe_update(struct libinput_event *event, -- cgit v1.2.3