touchpad events

This commit is contained in:
Valerio
2025-09-28 11:37:36 +02:00
parent ccf497afe1
commit c293a2d765

View File

@@ -1373,6 +1373,20 @@ main(int argc, char **argv)
}
break;
}
/* Touch events */
/* SDL_FINGERDOWN, */
/* SDL_FINGERUP, */
case SDL_FINGERMOTION:
{
// See SDL_TouchFingerEvent
if (mouse_capture || video_fullscreen) {
SDL_LockMutex(mousemutex);
mouse_scale((int)(event.tfinger.dx * 10), (int)(event.tfinger.dy * 10));
SDL_UnlockMutex(mousemutex);
}
break;
}
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
{