Enable free look for render to main

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4658 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
luisr142004 2009-12-08 02:20:27 +00:00
parent 80601f70c5
commit 4df6dc24f8
1 changed files with 4 additions and 2 deletions

View File

@ -185,7 +185,7 @@ void FreeLookInput( UINT iMsg, WPARAM wParam )
switch( iMsg ) switch( iMsg )
{ {
case WM_USER_KEYDOWN:
case WM_KEYDOWN: case WM_KEYDOWN:
switch( LOWORD( wParam )) switch( LOWORD( wParam ))
{ {
@ -338,8 +338,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
else else
SetCursor(hCursorBlank); SetCursor(hCursorBlank);
} }
if (wParam == WM_USER_KEYDOWN) if (wParam == WM_USER_KEYDOWN) {
OnKeyDown(lParam); OnKeyDown(lParam);
FreeLookInput(wParam, lParam);
}
if (wParam == TOGGLE_FULLSCREEN) if (wParam == TOGGLE_FULLSCREEN)
ToggleFullscreen(m_hWnd); ToggleFullscreen(m_hWnd);
break; break;