mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 00:26:56 +00:00
Raise modifier keys on disconnect
This commit is contained in:
parent
6729bb64f8
commit
c3453ce2b8
8
main.cpp
8
main.cpp
@ -80,6 +80,14 @@ void* MoonlightInstance::StopThreadFunc(void* context) {
|
|||||||
// not be invoked during LiStartConnection.
|
// not be invoked during LiStartConnection.
|
||||||
pthread_join(g_Instance->m_ConnectionThread, NULL);
|
pthread_join(g_Instance->m_ConnectionThread, NULL);
|
||||||
|
|
||||||
|
// Force raise all modifier keys to avoid leaving them down after disconnecting
|
||||||
|
LiSendKeyboardEvent(0xA0, KEY_ACTION_UP, 0);
|
||||||
|
LiSendKeyboardEvent(0xA1, KEY_ACTION_UP, 0);
|
||||||
|
LiSendKeyboardEvent(0xA2, KEY_ACTION_UP, 0);
|
||||||
|
LiSendKeyboardEvent(0xA3, KEY_ACTION_UP, 0);
|
||||||
|
LiSendKeyboardEvent(0xA4, KEY_ACTION_UP, 0);
|
||||||
|
LiSendKeyboardEvent(0xA5, KEY_ACTION_UP, 0);
|
||||||
|
|
||||||
// Not running anymore
|
// Not running anymore
|
||||||
g_Instance->m_Running = false;
|
g_Instance->m_Running = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user