src/video/wayland/SDL_waylandtouch.c
changeset 12404 eb60e952b13f
parent 12201 8bdc4d340419
child 12503 806492103856
equal deleted inserted replaced
12403:a4d730631698 12404:eb60e952b13f
    87     uint32_t touchFlags = flags & 0xFFFF;
    87     uint32_t touchFlags = flags & 0xFFFF;
    88     uint32_t capabilities = flags >> 16;
    88     uint32_t capabilities = flags >> 16;
    89     */
    89     */
    90 
    90 
    91     SDL_TouchID deviceId = 1;
    91     SDL_TouchID deviceId = 1;
    92     if (SDL_AddTouch(deviceId, "qt_touch_extension") < 0) {
    92     if (SDL_AddTouch(deviceId, SDL_TOUCH_DEVICE_DIRECT, "qt_touch_extension") < 0) {
    93          SDL_Log("error: can't add touch %s, %d", __FILE__, __LINE__);
    93          SDL_Log("error: can't add touch %s, %d", __FILE__, __LINE__);
    94     }
    94     }
    95 
    95 
    96     switch (touchState) {
    96     switch (touchState) {
    97         case QtWaylandTouchPointPressed:
    97         case QtWaylandTouchPointPressed: