Commit 91054a29 authored by mercury233's avatar mercury233

fix init

parent 7cfb1f22
...@@ -1205,8 +1205,11 @@ CIrrDeviceWin32::CIrrDeviceWin32(const SIrrlichtCreationParameters& params) ...@@ -1205,8 +1205,11 @@ CIrrDeviceWin32::CIrrDeviceWin32(const SIrrlichtCreationParameters& params)
SEnvMapper em; SEnvMapper em;
em.irrDev = this; em.irrDev = this;
em.hWnd = HWnd; em.hWnd = HWnd;
em.imeEnabled = true; em.imeEnabled = false;
EnvMap.push_back(em); EnvMap.push_back(em);
// Explicitly disable IME initially, it will be enabled when an edit box gets focus
ImmAssociateContextEx(HWnd, NULL, 0);
// set this as active window // set this as active window
if (!ExternalWindow) if (!ExternalWindow)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment