mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
types/wlr_touch: uniformize events name
This commit is contained in:
parent
e732c5c895
commit
aaf787ee56
7 changed files with 48 additions and 45 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue