mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 05:53:40 +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;
|
||||
}
|
||||
|
||||
if (!core_inputEnabled())
|
||||
return;
|
||||
|
||||
if (g_state.overlayInput)
|
||||
{
|
||||
g_state.io->KeysDown[sc] = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!core_inputEnabled())
|
||||
return;
|
||||
|
||||
// avoid sending key up events when we didn't send a down
|
||||
if (!g_state.keyDown[sc])
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user