accidently broke free look with mouse input, fixed (fixes issue 2377)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5153 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
luisr142004 2010-03-03 19:21:24 +00:00
parent d3923bfc26
commit e2316087f7

View File

@ -262,6 +262,9 @@ void OnKeyDown(WPARAM wParam)
// Should really take a look at the mouse stuff in here - some of it is weird. // Should really take a look at the mouse stuff in here - some of it is weird.
LRESULT CALLBACK WndProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam) LRESULT CALLBACK WndProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
{ {
if (g_Config.bFreeLook)
FreeLookInput( iMsg, wParam );
switch (iMsg) switch (iMsg)
{ {
case WM_CREATE: case WM_CREATE:
@ -300,8 +303,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
if (!g_Config.RenderToMainframe) if (!g_Config.RenderToMainframe)
OnKeyDown(wParam); OnKeyDown(wParam);
if (g_Config.bFreeLook)
FreeLookInput( iMsg, wParam );
break; break;
/* Post these mouse events to the main window, it's nessesary becase in difference to the /* Post these mouse events to the main window, it's nessesary becase in difference to the