1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-09-03 23:20:14 +02:00

Disable input method in game

This commit is contained in:
Lim Chunwei 2021-11-16 03:43:19 +08:00
parent bbbdb2d9d4
commit f5766d47b6

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();