mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
seat/pointer: add support for axis_relative_direction event
This commit is contained in:
parent
88b16bac54
commit
00bb1b0f84
6 changed files with 25 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue