Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibevents.c @ 4291:6cc2b35ac610 SDL-1.2
Fixed bug #634
If TranslateMessage() isn't done, then IME messages aren't generated.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 10 Oct 2009 07:30:00 +0000 |
parents | 9ea4413f0a9e |
children | 4988a4f76a09 |
comparison
equal
deleted
inserted
replaced
4290:485868a1c283 | 4291:6cc2b35ac610 |
---|---|
196 m.hwnd = hwnd; | 196 m.hwnd = hwnd; |
197 m.message = msg; | 197 m.message = msg; |
198 m.wParam = wParam; | 198 m.wParam = wParam; |
199 m.lParam = lParam; | 199 m.lParam = lParam; |
200 m.time = 0; | 200 m.time = 0; |
201 if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) { | 201 if ( PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) { |
202 GetMessage(&m, hwnd, 0, WM_USER); | 202 GetMessage(&m, hwnd, 0, WM_USER); |
203 wParam = m.wParam; | 203 wParam = m.wParam; |
204 } | 204 } |
205 } | 205 } |
206 #endif /* NO_GETKEYBOARDSTATE */ | 206 #endif /* NO_GETKEYBOARDSTATE */ |
361 { | 361 { |
362 MSG msg; | 362 MSG msg; |
363 | 363 |
364 while ( PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) { | 364 while ( PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) { |
365 if ( GetMessage(&msg, NULL, 0, 0) > 0 ) { | 365 if ( GetMessage(&msg, NULL, 0, 0) > 0 ) { |
366 TranslateMessage(&msg); | |
366 DispatchMessage(&msg); | 367 DispatchMessage(&msg); |
367 } | 368 } |
368 } | 369 } |
369 | 370 |
370 if ( SDL_GetAppState() & SDL_APPINPUTFOCUS ) { | 371 if ( SDL_GetAppState() & SDL_APPINPUTFOCUS ) { |