mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-04 14:22:02 +00:00
[client] overlay: add ImGui support for non-latin characters
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user