From a3838dd0e8de73774986391c49db8ae105154f5c Mon Sep 17 00:00:00 2001 From: y5nw <37980625+y5nw@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:34:37 +0200 Subject: [PATCH] Show IME candidate list in Windows (#14942) --- irr/src/CIrrDeviceSDL.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/irr/src/CIrrDeviceSDL.cpp b/irr/src/CIrrDeviceSDL.cpp index 71573a803..ffbd81950 100644 --- a/irr/src/CIrrDeviceSDL.cpp +++ b/irr/src/CIrrDeviceSDL.cpp @@ -343,6 +343,12 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters ¶m) : SDL_SetHint(SDL_HINT_APP_NAME, "Minetest"); #endif + // Set IME hints + SDL_SetHint(SDL_HINT_IME_INTERNAL_EDITING, "1"); +#if defined(SDL_HINT_IME_SHOW_UI) + SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1"); +#endif + u32 flags = SDL_INIT_TIMER | SDL_INIT_EVENTS; if (CreationParams.DriverType != video::EDT_NULL) flags |= SDL_INIT_VIDEO;