Generate synthetic mouse button up if the mouse has left the window and the button is raised
This commit is contained in:
parent
514a8575a2
commit
0428bc8fe3
4 changed files with 53 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue