Disable input method in game

This commit is contained in:
Lim Chunwei 2021-11-16 03:43:19 +08:00
parent bbbdb2d9d4
commit f5766d47b6
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@
#include "splash.h"
#include "render.h"
#pragma comment(lib, "imm32.lib")
const float TargetUPS = 120, TargetFrameTime = 1000 / TargetUPS;
HINSTANCE winmain::hinst = nullptr;
@ -192,6 +194,8 @@ int winmain::WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
return 0;
}
HIMC hImc = ImmAssociateContext(hwnd_frame, NULL);
auto menuHandle = GetMenu(windowHandle);
options::init(menuHandle);
pb::reset_table();