diff options
author | José Expósito <jose.exposito89@gmail.com> | 2022-02-25 17:30:42 +0100 |
---|---|---|
committer | José Expósito <jose.exposito89@gmail.com> | 2022-07-11 11:01:35 +0200 |
commit | c6032d6b1cc1cfb884924bb8afbdd200c3258d9a (patch) | |
tree | 2a497c181b1aec9801cf2ca42b41954b349fedfa /include/backend | |
parent | 65c436407f37118618b348b9b7303b55322d66a2 (diff) |
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.
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/libinput.h | 4 |
1 files changed, 4 insertions, 0 deletions
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, |