From e2316087f7406985798b54978c556561c0f1d708 Mon Sep 17 00:00:00 2001 From: luisr142004 Date: Wed, 3 Mar 2010 19:21:24 +0000 Subject: [PATCH] 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 --- Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp b/Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp index a54420ca2d..2f0d8cc1d7 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/OS/Win32.cpp @@ -261,7 +261,10 @@ void OnKeyDown(WPARAM wParam) // 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) -{ +{ + if (g_Config.bFreeLook) + FreeLookInput( iMsg, wParam ); + switch (iMsg) { case WM_CREATE: @@ -300,8 +303,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam) if (!g_Config.RenderToMainframe) OnKeyDown(wParam); - if (g_Config.bFreeLook) - FreeLookInput( iMsg, wParam ); break; /* Post these mouse events to the main window, it's nessesary becase in difference to the