Take advantage of SDL 2.0.10 bugfixes and new APIs. Fixes #133
This commit is contained in:
parent
06b3c3636a
commit
82b6b60b31
2 changed files with 18 additions and 8 deletions
|
|
@ -1231,17 +1231,11 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
|||
case SDL_JOYDEVICEADDED:
|
||||
m_InputHandler->handleJoystickArrivalEvent(&event.jdevice);
|
||||
break;
|
||||
|
||||
// SDL2 sends touch events from trackpads by default on
|
||||
// macOS. This totally screws our actual mouse handling,
|
||||
// so we must explicitly ignore touch events on macOS.
|
||||
#ifndef Q_OS_DARWIN
|
||||
case SDL_FINGERDOWN:
|
||||
case SDL_FINGERMOTION:
|
||||
case SDL_FINGERUP:
|
||||
m_InputHandler->handleTouchFingerEvent(&event.tfinger);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue