mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
pointer: use enum wl_pointer_button_state
This commit is contained in:
parent
9f4cf242d9
commit
812451cd8f
8 changed files with 21 additions and 21 deletions
|
|
@ -63,7 +63,7 @@ struct wlr_pointer_button_event {
|
|||
struct wlr_pointer *pointer;
|
||||
uint32_t time_msec;
|
||||
uint32_t button;
|
||||
enum wlr_button_state state;
|
||||
enum wl_pointer_button_state state;
|
||||
};
|
||||
|
||||
enum wlr_axis_orientation {
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ struct wlr_pointer_grab_interface {
|
|||
void (*motion)(struct wlr_seat_pointer_grab *grab, uint32_t time_msec,
|
||||
double sx, double sy);
|
||||
uint32_t (*button)(struct wlr_seat_pointer_grab *grab, uint32_t time_msec,
|
||||
uint32_t button, enum wlr_button_state state);
|
||||
uint32_t button, enum wl_pointer_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 wl_pointer_axis_source source,
|
||||
|
|
@ -399,7 +399,7 @@ void wlr_seat_pointer_send_motion(struct wlr_seat *wlr_seat, uint32_t time_msec,
|
|||
* instead.
|
||||
*/
|
||||
uint32_t wlr_seat_pointer_send_button(struct wlr_seat *wlr_seat,
|
||||
uint32_t time_msec, uint32_t button, enum wlr_button_state state);
|
||||
uint32_t time_msec, uint32_t button, enum wl_pointer_button_state state);
|
||||
|
||||
/**
|
||||
* Send an axis event to the surface with pointer focus. This function does not
|
||||
|
|
@ -453,7 +453,7 @@ void wlr_seat_pointer_notify_motion(struct wlr_seat *wlr_seat,
|
|||
* pointer.
|
||||
*/
|
||||
uint32_t wlr_seat_pointer_notify_button(struct wlr_seat *wlr_seat,
|
||||
uint32_t time_msec, uint32_t button, enum wlr_button_state state);
|
||||
uint32_t time_msec, uint32_t button, enum wl_pointer_button_state state);
|
||||
|
||||
/**
|
||||
* Notify the seat of an axis event. Defers to any grab of the pointer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue