Pass through focus-gain clicks to the host in absolute mouse mode

This commit is contained in:
Cameron Gutman 2020-05-06 18:58:43 -07:00
commit 05e82c24f8
3 changed files with 96 additions and 2 deletions

View file

@ -77,6 +77,8 @@ public:
void setCaptureActive(bool active);
void sendSyntheticMouseState(Uint32 state, Uint32 button);
static
QString getUnmappedGamepads();
@ -127,6 +129,9 @@ private:
bool m_AbsoluteMouseMode;
bool m_AbsoluteTouchMode;
bool m_PendingFocusGain;
Uint32 m_PendingFocusButtonUp;
SDL_TouchFingerEvent m_TouchDownEvent[MAX_FINGERS];
SDL_TimerID m_LeftButtonReleaseTimer;
SDL_TimerID m_RightButtonReleaseTimer;