Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibevents.c @ 140:3c35d8f160bd
Fixed compiling on Windows CE
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 09 Aug 2001 05:51:34 +0000 |
parents | 9ef74357a5fb |
children | 29a638dc26db |
comparison
equal
deleted
inserted
replaced
139:ef23a1bf1244 | 140:3c35d8f160bd |
---|---|
88 break; | 88 break; |
89 } | 89 } |
90 #ifdef NO_GETKEYBOARDSTATE | 90 #ifdef NO_GETKEYBOARDSTATE |
91 /* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */ | 91 /* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */ |
92 if ( SDL_TranslateUNICODE ) { | 92 if ( SDL_TranslateUNICODE ) { |
93 MSG msg; | 93 MSG m; |
94 | 94 |
95 msg.hwnd = hwnd; | 95 m.hwnd = hwnd; |
96 msg.message = msg; | 96 m.message = msg; |
97 msg.wParam = wParam; | 97 m.wParam = wParam; |
98 msg.lParam = lParam; | 98 m.lParam = lParam; |
99 msg.time = 0; | 99 m.time = 0; |
100 if ( TranslateMessage(&m) && PeekMessage(&msg, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) { | 100 if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) { |
101 GetMessage(&m, hwnd, 0, WM_USER); | 101 GetMessage(&m, hwnd, 0, WM_USER); |
102 wParam = m.wParam; | 102 wParam = m.wParam; |
103 } else { | 103 } else { |
104 wParam = 0; | 104 wParam = 0; |
105 } | 105 } |