CurInfo is an overengineered reactos construct. Mouse stuff is only relevant for an interactive Windowstation and there is only one per session. This way is correct,.but using the global variable gspv.bMouseBtnSwap directly would be better.
Regards, Timo
mkupfer@svn.reactos.org schrieb:
Author: mkupfer Date: Sun Oct 4 22:45:51 2009 New Revision: 43292
URL: http://svn.reactos.org/svn/reactos?rev=43292&view=rev Log: temporarily workaround for swap mouse buttons feature
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] Sun Oct 4 22:45:51 2009 @@ -1120,7 +1120,8 @@ mi->time = MsqCalculateMessageTime(&LargeTickCount); }
- SwapButtons = CurInfo->SwapButtons;
// FIXME: CurInfo->SwapButtons doesn't contain the correct value yet
SwapButtons = UserGetSystemMetrics(SM_SWAPBUTTON);//CurInfo->SwapButtons; DoMove = FALSE;
IntGetCursorLocation(WinSta, &MousePos);