Merge pull request #11804 from unknownbrackets/mac-touchpad

SDL: Prevent mouse capture on macbook trackpad
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2019-02-17 13:40:11 +00:00
commit fd9c7dfa3e
1 file changed
+3
+3
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: