Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
sdl - don't use the RAWMOUSE struct to get button press information, …
Browse files Browse the repository at this point in the history
…it lies badly to you, just use the usual windows message path
  • Loading branch information
slouken committed Feb 27, 2013
1 parent d130aee commit 8f38192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/windows/SDL_windowsevents.c
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 8f38192

Please sign in to comment.