Fixed compiling on Windows CE
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40141
This commit is contained in:
parent
8fd4e7fc4e
commit
a87c386058
1 changed files with 7 additions and 7 deletions
|
@ -90,14 +90,14 @@ LONG
|
||||||
#ifdef NO_GETKEYBOARDSTATE
|
#ifdef NO_GETKEYBOARDSTATE
|
||||||
/* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */
|
/* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */
|
||||||
if ( SDL_TranslateUNICODE ) {
|
if ( SDL_TranslateUNICODE ) {
|
||||||
MSG msg;
|
MSG m;
|
||||||
|
|
||||||
msg.hwnd = hwnd;
|
m.hwnd = hwnd;
|
||||||
msg.message = msg;
|
m.message = msg;
|
||||||
msg.wParam = wParam;
|
m.wParam = wParam;
|
||||||
msg.lParam = lParam;
|
m.lParam = lParam;
|
||||||
msg.time = 0;
|
m.time = 0;
|
||||||
if ( TranslateMessage(&m) && PeekMessage(&msg, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
|
if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
|
||||||
GetMessage(&m, hwnd, 0, WM_USER);
|
GetMessage(&m, hwnd, 0, WM_USER);
|
||||||
wParam = m.wParam;
|
wParam = m.wParam;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue