fix sdl3 imgui text input until pr is merged

https://github.com/ocornut/imgui/pull/7452
This commit is contained in:
Green Sky 2024-03-30 10:28:38 +01:00
parent e4d6d20269
commit f675afbe73
No known key found for this signature in database

View File

@ -117,6 +117,9 @@ static void ImGui_ImplSDL3_SetPlatformImeData(ImGuiViewport*, ImGuiPlatformImeDa
r.w = 1; r.w = 1;
r.h = (int)data->InputLineHeight; r.h = (int)data->InputLineHeight;
SDL_SetTextInputRect(&r); SDL_SetTextInputRect(&r);
SDL_StartTextInput();
} else {
SDL_StopTextInput();
} }
} }