mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] app: update imgui key release when guest input is disabled
This commit is contained in:
parent
a098bab114
commit
7eb00bd24c
@ -345,15 +345,15 @@ void app_handleKeyRelease(int sc)
|
|||||||
g_state.escapeActive = false;
|
g_state.escapeActive = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!core_inputEnabled())
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (g_state.overlayInput)
|
if (g_state.overlayInput)
|
||||||
{
|
{
|
||||||
g_state.io->KeysDown[sc] = false;
|
g_state.io->KeysDown[sc] = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!core_inputEnabled())
|
||||||
|
return;
|
||||||
|
|
||||||
// avoid sending key up events when we didn't send a down
|
// avoid sending key up events when we didn't send a down
|
||||||
if (!g_state.keyDown[sc])
|
if (!g_state.keyDown[sc])
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user