src/video/wayland/SDL_waylandevents.c
changeset 12404 eb60e952b13f
parent 12342 7cec5c0510ae
child 12455 bc838d7a29dc
equal deleted inserted replaced
12403:a4d730631698 12404:eb60e952b13f
   612         input->pointer = NULL;
   612         input->pointer = NULL;
   613         input->display->pointer = NULL;
   613         input->display->pointer = NULL;
   614     }
   614     }
   615 
   615 
   616     if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {
   616     if ((caps & WL_SEAT_CAPABILITY_TOUCH) && !input->touch) {
   617         SDL_AddTouch(1, "wayland_touch");
   617         SDL_AddTouch(1, SDL_TOUCH_DEVICE_DIRECT, "wayland_touch");
   618         input->touch = wl_seat_get_touch(seat);
   618         input->touch = wl_seat_get_touch(seat);
   619         wl_touch_set_user_data(input->touch, input);
   619         wl_touch_set_user_data(input->touch, input);
   620         wl_touch_add_listener(input->touch, &touch_listener,
   620         wl_touch_add_listener(input->touch, &touch_listener,
   621                                  input);
   621                                  input);
   622     } else if (!(caps & WL_SEAT_CAPABILITY_TOUCH) && input->touch) {
   622     } else if (!(caps & WL_SEAT_CAPABILITY_TOUCH) && input->touch) {