sdl - don't use the RAWMOUSE struct to get button press information, it lies badly to you, just use the usual windows message path

This commit is contained in:
Sam Lantinga 2013-02-27 11:39:41 -08:00
parent f4e5303f46
commit 6b945c8586

View file

@ -356,7 +356,6 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
case WM_MBUTTONUP: case WM_MBUTTONUP:
case WM_XBUTTONDOWN: case WM_XBUTTONDOWN:
case WM_XBUTTONUP: case WM_XBUTTONUP:
if(!SDL_GetMouse()->relative_mode)
WIN_CheckWParamMouseButtons( wParam, data ); WIN_CheckWParamMouseButtons( wParam, data );
break; break;
@ -395,7 +394,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
initialMousePoint.x = mouse->lLastX; initialMousePoint.x = mouse->lLastX;
initialMousePoint.y = mouse->lLastY; 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; break;
} }