src/video/windib/SDL_dibevents.c
changeset 1264 f3a3f1890b91
parent 1253 7c7ddaf195bf
child 1280 f61f045343d3
equal deleted inserted replaced
1263:3bdcef7e1c90 1264:f3a3f1890b91
   145 				m.lParam = lParam;
   145 				m.lParam = lParam;
   146 				m.time = 0;
   146 				m.time = 0;
   147 				if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
   147 				if ( TranslateMessage(&m) && PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
   148 					GetMessage(&m, hwnd, 0, WM_USER);
   148 					GetMessage(&m, hwnd, 0, WM_USER);
   149 			    		wParam = m.wParam;
   149 			    		wParam = m.wParam;
   150 				} else {
       
   151 					wParam = 0;
       
   152 				}
   150 				}
   153 			}
   151 			}
   154 #endif /* NO_GETKEYBOARDSTATE */
   152 #endif /* NO_GETKEYBOARDSTATE */
   155 			posted = SDL_PrivateKeyboard(SDL_PRESSED,
   153 			posted = SDL_PrivateKeyboard(SDL_PRESSED,
   156 				TranslateKey(wParam,HIWORD(lParam),&keysym,1));
   154 				TranslateKey(wParam,HIWORD(lParam),&keysym,1));