[client] cimgui: update to 1.91.8

This commit is contained in:
Geoffrey McRae
2025-03-05 15:16:31 +11:00
parent 6dcf178879
commit d9f2df361d
10 changed files with 115 additions and 39 deletions

View File

@@ -346,8 +346,8 @@ void app_handleKeyPress(int sc, int charcode)
app_setOverlay(false);
else
{
if (sc < sizeof(g_state.io->KeysDown))
g_state.io->KeysDown[sc] = true;
if (linux_to_imgui[sc])
ImGuiIO_AddKeyEvent(g_state.io, linux_to_imgui[sc], true);
}
return;
}
@@ -365,7 +365,10 @@ void app_handleKeyPress(int sc, int charcode)
return;
if (purespice_keyDown(ps2))
g_state.keyDown[sc] = true;
{
if (linux_to_imgui[sc])
ImGuiIO_AddKeyEvent(g_state.io, linux_to_imgui[sc], true);
}
else
{
DEBUG_ERROR("app_handleKeyPress: failed to send message");
@@ -391,8 +394,8 @@ void app_handleKeyRelease(int sc, int charcode)
if (app_isOverlayMode())
{
if (sc < sizeof(g_state.io->KeysDown))
g_state.io->KeysDown[sc] = false;
if (linux_to_imgui[sc])
ImGuiIO_AddKeyEvent(g_state.io, linux_to_imgui[sc], false);
return;
}