MOUSEKEYS structure (winuser.h)
Contains information about the MouseKeys accessibility feature. When the MouseKeys feature is active, the user can use the numeric keypad to control the mouse pointer, and to click, double-click, drag, and drop. By pressing NUMLOCK, the user can toggle the numeric keypad between mouse control mode and normal operation.
Syntax
typedef struct tagMOUSEKEYS {
UINT cbSize;
DWORD dwFlags;
DWORD iMaxSpeed;
DWORD iTimeToMaxSpeed;
DWORD iCtrlSpeed;
DWORD dwReserved1;
DWORD dwReserved2;
} MOUSEKEYS, *LPMOUSEKEYS;
Members
cbSize
Type: DWORD
Specifies the size, in bytes, of this structure.
dwFlags
Type: DWORD
A set of bit-flags that specify properties of the FilterKeys feature. The following bit-flag values are defined:
iMaxSpeed
Type: DWORD
Specifies the maximum speed the mouse cursor attains when an arrow key is held down.
Windows 95/98: Range checking is not performed.
Windows NT/2000: Valid values are from 10 to 360.
iTimeToMaxSpeed
Type: DWORD
Specifies the length of time, in milliseconds, that it takes for the mouse cursor to reach maximum speed when an arrow key is held down. Valid values are from 1000 to 5000.
iCtrlSpeed
Type: DWORD
Specifies the multiplier to apply to the mouse cursor speed when the user holds down the CTRL key while using the arrow keys to move the cursor. this value is ignored if MKF_MODIFIERS is not set.
dwReserved1
Type: DWORD
This member is reserved for future use. It must be set to zero.
dwReserved2
Type: DWORD
This member is reserved for future use. It must be set to zero.
Remarks
An application uses a MOUSEKEYS structure when calling the SystemParametersInfo function with the uiAction parameter set to the SPI_GETMOUSEKEYS or SPI_SETMOUSEKEYS value. When using SPI_GETMOUSEKEYS, an application must specify the cbSize member of the MOUSEKEYS structure; the SystemParametersInfo function fills the remaining members. An application must specify all structure members when using the SPI_SETMOUSEKEYS value.
If you call SystemParametersInfo with the SPI_SETMOUSEKEYS value, the following flags are ignored:
- MKF_LEFTBUTTONDOWN
- MKF_LEFTBUTTONSEL
- MKF_MOUSEMODE
- MKF_RIGHTBUTTONDOWN
- MKF_RIGHTBUTTONSEL
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | winuser.h (include Windows.h) |