sdl - don't use the RAWMOUSE struct to get button press information, it lies badly to you, just use the usual windows message path
authorSam Lantinga <slouken@libsdl.org>
Wed, 27 Feb 2013 11:39:41 -0800
changeset 6944e8effbc1a10e
parent 6943 ce87e12970f5
child 6945 d97f9251ac3a
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
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Wed Feb 27 11:39:39 2013 -0800
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Wed Feb 27 11:39:41 2013 -0800
     1.3 @@ -356,8 +356,7 @@
     1.4  	case WM_MBUTTONUP:
     1.5  	case WM_XBUTTONDOWN:
     1.6  	case WM_XBUTTONUP:
     1.7 -		if(!SDL_GetMouse()->relative_mode)
     1.8 -			WIN_CheckWParamMouseButtons( wParam, data );
     1.9 +		WIN_CheckWParamMouseButtons( wParam, data );
    1.10  		break;
    1.11  
    1.12  	case WM_INPUT:
    1.13 @@ -395,7 +394,8 @@
    1.14  				initialMousePoint.x = mouse->lLastX;
    1.15  				initialMousePoint.y = mouse->lLastY;
    1.16  			}
    1.17 -			WIN_CheckRawMouseButtons( mouse->usButtonFlags, data );
    1.18 +			/ * this call doesn't actually work, usButtonFlags gets zero'd if you hold down button 1 and then move the mouse
    1.19 +			WIN_CheckRawMouseButtons( mouse->usButtonFlags, data ); */
    1.20  		}
    1.21  		break;
    1.22  	}