Fix keys being stuck after Moonlight loses focus or is quit via OS shortcut (Alt+Tab/Alt+F4)

This commit is contained in:
Cameron Gutman 2018-10-03 18:27:12 -07:00
commit 6661ca17c2
3 changed files with 54 additions and 21 deletions

View file

@ -47,6 +47,8 @@ public:
int getAttachedGamepadMask();
void raiseAllKeys();
static
QString getUnmappedGamepads();
@ -70,6 +72,7 @@ private:
bool m_NeedsInputDelay;
int m_GamepadMask;
GamepadState m_GamepadState[MAX_GAMEPADS];
QSet<short> m_KeysDown;
SDL_TouchFingerEvent m_TouchDownEvent[MAX_FINGERS];
float m_CumulativeDelta[MAX_FINGERS];