SDL: Prevent mouse capture on macbook trackpad.

This commit is contained in:
Unknown W. Brackets 2019-02-17 04:53:30 -08:00
parent 57ef8b3341
commit dfc75e8c34

View file

@ -682,6 +682,8 @@ int main(int argc, char *argv[]) {
NativeKey(key);
break;
}
// This behavior doesn't feel right on a macbook with a touchpad.
#if !PPSSPP_PLATFORM(MAC)
case SDL_FINGERMOTION:
{
SDL_GetWindowSize(window, &w, &h);
@ -744,6 +746,7 @@ int main(int argc, char *argv[]) {
SDL_PushEvent(&touchEvent);
break;
}
#endif
case SDL_MOUSEBUTTONDOWN:
switch (event.button.button) {
case SDL_BUTTON_LEFT: