Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibevents.c @ 112:9ef74357a5fb
Incorporated slightly modified version of Rainer's WinCE patch
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Wed, 18 Jul 2001 20:04:23 +0000 |
parents | 13ee9f4834ea |
children | 3c35d8f160bd |
comparison
equal
deleted
inserted
replaced
111:53e3d8ba4321 | 112:9ef74357a5fb |
---|---|
85 wParam = VK_RMENU; | 85 wParam = VK_RMENU; |
86 else | 86 else |
87 wParam = VK_LMENU; | 87 wParam = VK_LMENU; |
88 break; | 88 break; |
89 } | 89 } |
90 #ifdef NO_GETKEYBOARDSTATE | |
91 /* this is the workaround for the missing ToAscii() and ToUnicode() in CE (not necessary at KEYUP!) */ | |
92 if ( SDL_TranslateUNICODE ) { | |
93 MSG msg; | |
94 | |
95 msg.hwnd = hwnd; | |
96 msg.message = msg; | |
97 msg.wParam = wParam; | |
98 msg.lParam = lParam; | |
99 msg.time = 0; | |
100 if ( TranslateMessage(&m) && PeekMessage(&msg, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) { | |
101 GetMessage(&m, hwnd, 0, WM_USER); | |
102 wParam = m.wParam; | |
103 } else { | |
104 wParam = 0; | |
105 } | |
106 } else { | |
107 wParam = 0; | |
108 } | |
109 #endif /* NO_GETKEYBOARDSTATE */ | |
90 posted = SDL_PrivateKeyboard(SDL_PRESSED, | 110 posted = SDL_PrivateKeyboard(SDL_PRESSED, |
91 TranslateKey(wParam,HIWORD(lParam),&keysym,1)); | 111 TranslateKey(wParam,HIWORD(lParam),&keysym,1)); |
92 } | 112 } |
93 return(0); | 113 return(0); |
94 | 114 |