types/wlr_touch: uniformize events name

This commit is contained in:
Simon Zeni 2022-03-09 16:01:14 -05:00 committed by Kirill Primak
parent e732c5c895
commit aaf787ee56
7 changed files with 48 additions and 45 deletions

View file

@ -34,30 +34,30 @@ struct wlr_touch {
void *data;
};
struct wlr_event_touch_down {
struct wlr_input_device *device;
struct wlr_touch_down_event {
struct wlr_touch *touch;
uint32_t time_msec;
int32_t touch_id;
// From 0..1
double x, y;
};
struct wlr_event_touch_up {
struct wlr_input_device *device;
struct wlr_touch_up_event {
struct wlr_touch *touch;
uint32_t time_msec;
int32_t touch_id;
};
struct wlr_event_touch_motion {
struct wlr_input_device *device;
struct wlr_touch_motion_event {
struct wlr_touch *touch;
uint32_t time_msec;
int32_t touch_id;
// From 0..1
double x, y;
};
struct wlr_event_touch_cancel {
struct wlr_input_device *device;
struct wlr_touch_cancel_event {
struct wlr_touch *touch;
uint32_t time_msec;
int32_t touch_id;
};