diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-11 13:28:33 +0100 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-23 08:37:29 +0000 |
commit | 00bb1b0f84991a100ae420ee413dd861c25c43fb (patch) | |
tree | 04272b8dd0d90ff9d28b1fd1ff2a26bcc849506b /include | |
parent | 88b16bac54d9995196ace3823c4b81ffc84d7d9e (diff) |
seat/pointer: add support for axis_relative_direction event
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_seat.h | 9 |
1 files changed, 6 insertions, 3 deletions
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 |