Skip to content

Commit

Permalink
Merge pull request #11804 from unknownbrackets/mac-touchpad
Browse files Browse the repository at this point in the history
SDL: Prevent mouse capture on macbook trackpad
  • Loading branch information
hrydgard authored Feb 17, 2019
2 parents 57ef8b3 + dfc75e8 commit fd9c7df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SDL/SDLMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit fd9c7df

Please sign in to comment.