[client] kb: add support for missing key mappings

Fixes #1321
This commit is contained in:
Geoffrey McRae
2026-07-30 10:03:14 +10:00
parent 8fb355e6b7
commit deb447c3ce
2 changed files with 142 additions and 3 deletions

View File

@@ -723,7 +723,7 @@ void core_resetOverlayInputState(void)
g_state.io->MouseDown[ImGuiMouseButton_Left ] = false;
g_state.io->MouseDown[ImGuiMouseButton_Right ] = false;
g_state.io->MouseDown[ImGuiMouseButton_Middle] = false;
for(int key = ImGuiKey_NamedKey_BEGIN; key < ImGuiKey_NamedKey_END; key++)
for(int key = 0; key < KEY_MAX; key++)
if (linux_to_imgui[key])
ImGuiIO_AddKeyEvent(g_state.io, linux_to_imgui[key], false);
}