Generate synthetic mouse button up if the mouse has left the window and the button is raised

This commit is contained in:
Cameron Gutman 2020-05-07 19:26:02 -07:00
commit 0428bc8fe3
4 changed files with 53 additions and 0 deletions

View file

@ -69,6 +69,8 @@ public:
void raiseAllKeys();
void notifyMouseLeave();
void notifyFocusLost();
bool isCaptureActive();
@ -124,6 +126,7 @@ private:
int m_StreamHeight;
bool m_AbsoluteMouseMode;
bool m_AbsoluteTouchMode;
Uint32 m_PendingMouseLeaveButtonUp;
SDL_TouchFingerEvent m_TouchDownEvent[MAX_FINGERS];
SDL_TimerID m_LeftButtonReleaseTimer;