diff options
Diffstat (limited to 'Source/Core/VideoCommon/Src/EmuWindow.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/EmuWindow.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/Src/EmuWindow.cpp b/Source/Core/VideoCommon/Src/EmuWindow.cpp index cbb0bc31ac..bf9da4190b 100644 --- a/Source/Core/VideoCommon/Src/EmuWindow.cpp +++ b/Source/Core/VideoCommon/Src/EmuWindow.cpp @@ -80,7 +80,7 @@ void FreeLookInput( UINT iMsg, WPARAM wParam ) static bool mouseLookEnabled = false; static bool mouseMoveEnabled = false; static float lastMouse[2]; - POINT point; + POINT point; switch(iMsg) { case WM_USER_KEYDOWN: @@ -133,7 +133,7 @@ void FreeLookInput( UINT iMsg, WPARAM wParam ) lastMouse[1] = (float)point.y; mouseLookEnabled= true; break; - case WM_MBUTTONDOWN: + case WM_MBUTTONDOWN: GetCursorPos(&point); lastMouse[0] = (float)point.x; lastMouse[1] = (float)point.y; @@ -205,10 +205,6 @@ LRESULT CALLBACK WndProc( HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam ) OnKeyDown(lParam); FreeLookInput((u32)wParam, lParam); } - else if (wParam == WIIMOTE_DISCONNECT) - { - PostMessage(m_hParent, WM_USER, wParam, lParam); - } break; // Called when a screensaver wants to show up while this window is active |
