mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
SDL: Prevent mouse capture on macbook trackpad.
This commit is contained in:
parent
57ef8b3341
commit
dfc75e8c34
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue