From 8f38192090147b6e801173b072d9f3f759841c5b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 27 Feb 2013 11:39:41 -0800 Subject: [PATCH] sdl - don't use the RAWMOUSE struct to get button press information, it lies badly to you, just use the usual windows message path --- src/video/windows/SDL_windowsevents.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index a50f8b748..c1396790a 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -356,8 +356,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) case WM_MBUTTONUP: case WM_XBUTTONDOWN: case WM_XBUTTONUP: - if(!SDL_GetMouse()->relative_mode) - WIN_CheckWParamMouseButtons( wParam, data ); + WIN_CheckWParamMouseButtons( wParam, data ); break; case WM_INPUT: @@ -395,7 +394,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) initialMousePoint.x = mouse->lLastX; initialMousePoint.y = mouse->lLastY; } - WIN_CheckRawMouseButtons( mouse->usButtonFlags, data ); + / * this call doesn't actually work, usButtonFlags gets zero'd if you hold down button 1 and then move the mouse + WIN_CheckRawMouseButtons( mouse->usButtonFlags, data ); */ } break; }