touchpad events, try sdl emulation

This commit is contained in:
Valerio
2025-09-28 12:11:38 +02:00
parent ef33439e0b
commit a52b18f9e2
2 changed files with 3 additions and 3 deletions

View File

@@ -1378,7 +1378,6 @@ main(int argc, char **argv)
/* Touch events */
/* SDL_FINGERDOWN, */
/* SDL_FINGERUP, */
/*
case SDL_FINGERMOTION:
{
// See SDL_TouchFingerEvent
@@ -1389,7 +1388,6 @@ main(int argc, char **argv)
}
break;
}
*/
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
@@ -1424,6 +1422,8 @@ main(int argc, char **argv)
case SDL_BUTTON_X2:
buttonmask = 16;
break;
default:
printf("Unknown mouse button %d\n", event.button.button);
}
SDL_LockMutex(mousemutex);
if (event.button.state == SDL_PRESSED)

View File

@@ -419,7 +419,7 @@ sdl_init_common(int flags)
return (0);
}
// Ensure mouse and touchpads behaves the same for us
// Ensure mouse and touchpads behaves the same for us, dunno if these really do something
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "1");
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1");