From 00bb1b0f84991a100ae420ee413dd861c25c43fb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 11 Feb 2023 13:28:33 +0100 Subject: seat/pointer: add support for axis_relative_direction event --- include/wlr/types/wlr_seat.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h index 70cc0782..bafd00ad 100644 --- a/include/wlr/types/wlr_seat.h +++ b/include/wlr/types/wlr_seat.h @@ -101,7 +101,8 @@ struct wlr_pointer_grab_interface { uint32_t button, enum wlr_button_state state); void (*axis)(struct wlr_seat_pointer_grab *grab, uint32_t time_msec, enum wlr_axis_orientation orientation, double value, - int32_t value_discrete, enum wlr_axis_source source); + int32_t value_discrete, enum wlr_axis_source source, + enum wlr_axis_relative_direction relative_direction); void (*frame)(struct wlr_seat_pointer_grab *grab); void (*cancel)(struct wlr_seat_pointer_grab *grab); }; @@ -407,7 +408,8 @@ uint32_t wlr_seat_pointer_send_button(struct wlr_seat *wlr_seat, */ void wlr_seat_pointer_send_axis(struct wlr_seat *wlr_seat, uint32_t time_msec, enum wlr_axis_orientation orientation, double value, - int32_t value_discrete, enum wlr_axis_source source); + int32_t value_discrete, enum wlr_axis_source source, + enum wlr_axis_relative_direction relative_direction); /** * Send a frame event to the surface with pointer focus. This function does not @@ -458,7 +460,8 @@ uint32_t wlr_seat_pointer_notify_button(struct wlr_seat *wlr_seat, */ void wlr_seat_pointer_notify_axis(struct wlr_seat *wlr_seat, uint32_t time_msec, enum wlr_axis_orientation orientation, double value, - int32_t value_discrete, enum wlr_axis_source source); + int32_t value_discrete, enum wlr_axis_source source, + enum wlr_axis_relative_direction relative_direction); /** * Notify the seat of a frame event. Frame events are sent to end a group of -- cgit v1.2.3