[client] overlay: add ImGui support for non-latin characters

This commit is contained in:
Geoffrey McRae
2026-07-30 12:39:47 +10:00
parent f3155647d2
commit 4f02eda913
9 changed files with 374 additions and 21 deletions

View File

@@ -569,6 +569,7 @@ void app_handleKeyRelease(int sc)
void app_handleKeyboardTyped(const char * typed)
{
app_registerImGuiText(typed);
ImGuiIO_AddInputCharactersUTF8(g_state.io, typed);
}
@@ -1151,6 +1152,15 @@ void app_overlayConfigRegisterTab(const char * title,
overlayConfig_registerTab(title, callback, udata);
}
void app_registerImGuiText(const char * text)
{
if (!util_uiFontAddText(text))
return;
atomic_fetch_add(&g_state.lgrResize, 1);
app_invalidateOverlay(false);
}
void app_invalidateOverlay(bool renderTwice)
{
if (app_getState() == APP_STATE_SHUTDOWN)