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