mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 00:59:41 +01:00
Merge pull request #11804 from unknownbrackets/mac-touchpad
SDL: Prevent mouse capture on macbook trackpad
This commit is contained in:
1 file changed
+3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user