mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 23:37:09 -05:00
Fixed compiling on Windows CE
This commit is contained in:
parent
7bd83346de
commit
0a46f96746
|
|
@ -90,14 +90,14 @@ LONG
|
|||
#ifdef NO_GETKEYBOARDSTATE
|
||||
/* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */
|
||||
if ( SDL_TranslateUNICODE ) {
|
||||
MSG msg;
|
||||
MSG m;
|
||||
|
||||
msg.hwnd = hwnd;
|
||||
msg.message = msg;
|
||||
msg.wParam = wParam;
|
||||
msg.lParam = lParam;
|
||||
msg.time = 0;
|
||||
if ( TranslateMessage(&m) && PeekMessage(&msg, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
|
||||
m.hwnd = hwnd;
|
||||
m.message = msg;
|
||||
m.wParam = wParam;
|
||||
m.lParam = lParam;
|
||||
m.time = 0;
|
||||
if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
|
||||
GetMessage(&m, hwnd, 0, WM_USER);
|
||||
wParam = m.wParam;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user