mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 01:48:21 -07:00
touchpad events, try sdl emulation
This commit is contained in:
@@ -1378,6 +1378,7 @@ main(int argc, char **argv)
|
||||
/* Touch events */
|
||||
/* SDL_FINGERDOWN, */
|
||||
/* SDL_FINGERUP, */
|
||||
/*
|
||||
case SDL_FINGERMOTION:
|
||||
{
|
||||
// See SDL_TouchFingerEvent
|
||||
@@ -1388,6 +1389,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
break;
|
||||
}
|
||||
*/
|
||||
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
case SDL_MOUSEBUTTONUP:
|
||||
|
||||
@@ -419,6 +419,10 @@ sdl_init_common(int flags)
|
||||
return (0);
|
||||
}
|
||||
|
||||
// Ensure mouse and touchpads behaves the same for us
|
||||
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "1");
|
||||
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1");
|
||||
|
||||
if (flags & RENDERER_HARDWARE) {
|
||||
if (flags & RENDERER_OPENGL) {
|
||||
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "OpenGL");
|
||||
|
||||
Reference in New Issue
Block a user