src/video/windib/SDL_dibevents.c
branchSDL-1.2
changeset 4384 6800e2560310
parent 4350 4988a4f76a09
child 5886 05fabaf401c9
equal deleted inserted replaced
4383:daf9e6037596 4384:6800e2560310
   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 ( PeekMessage(&m, hwnd, 0, WM_USER, PM_NOREMOVE) && (m.message == WM_CHAR) ) {
   201 				if ( TranslateMessage(&m) && 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);
       
   367 			DispatchMessage(&msg);
   366 			DispatchMessage(&msg);
   368 		}
   367 		}
   369 	}
   368 	}
   370 
   369 
   371 	if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
   370 	if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {