mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
pointer: drop enum wlr_axis_source
Instead, use enum wl_pointer_axis_source from the Wayland protocol.
This commit is contained in:
parent
c45e97f3a5
commit
9f4cf242d9
10 changed files with 22 additions and 29 deletions
|
|
@ -72,7 +72,7 @@ void handle_pointer_axis(struct libinput_event *event,
|
|||
struct wlr_pointer *pointer);
|
||||
#if HAVE_LIBINPUT_SCROLL_VALUE120
|
||||
void handle_pointer_axis_value120(struct libinput_event *event,
|
||||
struct wlr_pointer *pointer, enum wlr_axis_source source);
|
||||
struct wlr_pointer *pointer, enum wl_pointer_axis_source source);
|
||||
#endif
|
||||
void handle_pointer_swipe_begin(struct libinput_event *event,
|
||||
struct wlr_pointer *pointer);
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ struct wlr_wl_pointer {
|
|||
struct wlr_wl_seat *seat;
|
||||
struct wlr_wl_output *output;
|
||||
|
||||
enum wlr_axis_source axis_source;
|
||||
enum wl_pointer_axis_source axis_source;
|
||||
int32_t axis_discrete;
|
||||
uint32_t fingers; // trackpad gesture
|
||||
enum wlr_axis_relative_direction axis_relative_direction;
|
||||
|
|
|
|||
|
|
@ -66,13 +66,6 @@ struct wlr_pointer_button_event {
|
|||
enum wlr_button_state state;
|
||||
};
|
||||
|
||||
enum wlr_axis_source {
|
||||
WLR_AXIS_SOURCE_WHEEL,
|
||||
WLR_AXIS_SOURCE_FINGER,
|
||||
WLR_AXIS_SOURCE_CONTINUOUS,
|
||||
WLR_AXIS_SOURCE_WHEEL_TILT,
|
||||
};
|
||||
|
||||
enum wlr_axis_orientation {
|
||||
WLR_AXIS_ORIENTATION_VERTICAL,
|
||||
WLR_AXIS_ORIENTATION_HORIZONTAL,
|
||||
|
|
@ -88,7 +81,7 @@ enum wlr_axis_relative_direction {
|
|||
struct wlr_pointer_axis_event {
|
||||
struct wlr_pointer *pointer;
|
||||
uint32_t time_msec;
|
||||
enum wlr_axis_source source;
|
||||
enum wl_pointer_axis_source source;
|
||||
enum wlr_axis_orientation orientation;
|
||||
enum wlr_axis_relative_direction relative_direction;
|
||||
double delta;
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ 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 wl_pointer_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);
|
||||
|
|
@ -182,7 +182,7 @@ struct wlr_seat_pointer_state {
|
|||
struct wlr_seat_pointer_grab *default_grab;
|
||||
|
||||
bool sent_axis_source;
|
||||
enum wlr_axis_source cached_axis_source;
|
||||
enum wl_pointer_axis_source cached_axis_source;
|
||||
|
||||
uint32_t buttons[WLR_POINTER_BUTTONS_CAP];
|
||||
size_t button_count;
|
||||
|
|
@ -408,7 +408,7 @@ 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 wl_pointer_axis_source source,
|
||||
enum wlr_axis_relative_direction relative_direction);
|
||||
|
||||
/**
|
||||
|
|
@ -460,7 +460,7 @@ 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 wl_pointer_axis_source source,
|
||||
enum wlr_axis_relative_direction relative_direction);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue