mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 09:35:32 -07:00
touchpad events, try sdl emulation
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user