mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04: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
|
|
@ -93,7 +93,7 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
|
||||
static void touch_down_notify(struct wl_listener *listener, void *data) {
|
||||
struct wlr_event_touch_motion *event = data;
|
||||
struct wlr_touch_motion_event *event = data;
|
||||
struct touch_state *tstate = wl_container_of(listener, tstate, down);
|
||||
struct sample_state *sample = tstate->sample;
|
||||
struct touch_point *point = calloc(1, sizeof(struct touch_point));
|
||||
|
|
@ -104,7 +104,7 @@ static void touch_down_notify(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
|
||||
static void touch_up_notify(struct wl_listener *listener, void *data ) {
|
||||
struct wlr_event_touch_up *event = data;
|
||||
struct wlr_touch_up_event *event = data;
|
||||
struct touch_state *tstate = wl_container_of(listener, tstate, up);
|
||||
struct sample_state *sample = tstate->sample;
|
||||
struct touch_point *point, *tmp;
|
||||
|
|
@ -117,7 +117,7 @@ static void touch_up_notify(struct wl_listener *listener, void *data ) {
|
|||
}
|
||||
|
||||
static void touch_motion_notify(struct wl_listener *listener, void *data) {
|
||||
struct wlr_event_touch_motion *event = data;
|
||||
struct wlr_touch_motion_event *event = data;
|
||||
struct touch_state *tstate = wl_container_of(listener, tstate, motion);
|
||||
struct sample_state *sample = tstate->sample;
|
||||
struct touch_point *point;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue