mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:53:02 +00:00
- some preparation for ClickLock implementation
svn path=/trunk/; revision=43325
This commit is contained in:
parent
f637e66227
commit
4da1dafa69
3 changed files with 6 additions and 0 deletions
|
@ -41,6 +41,8 @@ typedef struct _CURSORACCELERATION_INFO
|
||||||
typedef struct _SYSTEM_CURSORINFO
|
typedef struct _SYSTEM_CURSORINFO
|
||||||
{
|
{
|
||||||
BOOL Enabled;
|
BOOL Enabled;
|
||||||
|
BOOL ClickLockActive;
|
||||||
|
DWORD ClickLockTime;
|
||||||
// BOOL SwapButtons;
|
// BOOL SwapButtons;
|
||||||
UINT ButtonsDown;
|
UINT ButtonsDown;
|
||||||
CURSORCLIP_INFO CursorClipInfo;
|
CURSORCLIP_INFO CursorClipInfo;
|
||||||
|
|
|
@ -263,6 +263,7 @@ SpiUpdatePerUserSystemParameters()
|
||||||
gspv.iWheelScrollLines = SpiLoadInt(KEY_DESKTOP, VAL_SCRLLLINES, 3);
|
gspv.iWheelScrollLines = SpiLoadInt(KEY_DESKTOP, VAL_SCRLLLINES, 3);
|
||||||
gspv.dwMouseClickLockTime = SpiLoadDWord(KEY_DESKTOP, VAL_CLICKLOCKTIME, 1200);
|
gspv.dwMouseClickLockTime = SpiLoadDWord(KEY_DESKTOP, VAL_CLICKLOCKTIME, 1200);
|
||||||
gspv.dwUserPrefMask = SpiLoadUserPrefMask(UPM_DEFAULT);
|
gspv.dwUserPrefMask = SpiLoadUserPrefMask(UPM_DEFAULT);
|
||||||
|
gspv.bMouseClickLock = (gspv.dwUserPrefMask & UPM_CLICKLOCK) != 0;
|
||||||
#if (_WIN32_WINNT >= 0x0600)
|
#if (_WIN32_WINNT >= 0x0600)
|
||||||
gspv.iWheelScrollChars = SpiLoadInt(KEY_DESKTOP, VAL_SCRLLCHARS, 3);
|
gspv.iWheelScrollChars = SpiLoadInt(KEY_DESKTOP, VAL_SCRLLCHARS, 3);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1322,6 +1323,7 @@ SpiGetSet(UINT uiAction, UINT uiParam, PVOID pvParam, FLONG fl)
|
||||||
return SpiGetUserPref(UPM_CLICKLOCK, pvParam, fl);
|
return SpiGetUserPref(UPM_CLICKLOCK, pvParam, fl);
|
||||||
|
|
||||||
case SPI_SETMOUSECLICKLOCK:
|
case SPI_SETMOUSECLICKLOCK:
|
||||||
|
gspv.bMouseClickLock = *(BOOL*) pvParam;
|
||||||
return SpiSetUserPref(UPM_CLICKLOCK, pvParam, fl);
|
return SpiSetUserPref(UPM_CLICKLOCK, pvParam, fl);
|
||||||
|
|
||||||
case SPI_GETMOUSEVANISH:
|
case SPI_GETMOUSEVANISH:
|
||||||
|
|
|
@ -537,6 +537,8 @@ NtUserCreateWindowStation(
|
||||||
CurInfo->LastBtnDown = 0;
|
CurInfo->LastBtnDown = 0;
|
||||||
CurInfo->CurrentCursorObject = NULL;
|
CurInfo->CurrentCursorObject = NULL;
|
||||||
CurInfo->ShowingCursor = 0;
|
CurInfo->ShowingCursor = 0;
|
||||||
|
CurInfo->ClickLockActive = FALSE;
|
||||||
|
CurInfo->ClickLockTime = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// not used anymore
|
// not used anymore
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue