The WM_INPUT message is sent to the window that is getting raw input.
A window receives this message through its WindowProc function.
Syntax
WM_INPUT
WPARAM wParam
lpRawInput = (LPRAWINPUT) lParam;
Parameters
- wParam
-
Input code. This parameter can be one of the following values.
RIM_INPUT- Input occurred while the application was in the foreground. The application must call DefWindowProc so the system can perform cleanup.
RIM_INPUTSINK- Input occurred while the application was not in the foreground. The application must call DefWindowProc so the system can perform the cleanup.
- lParam
-
Handle to the RAWINPUT structure that contains the raw input from the device.
Return Value
If an application processes this message, it should return zero.
Remarks
To get the
wParam value, use the GET_RAWINPUT_CODE_WPARAM macro.
Note that
lParam has the handle to the RAWINPUT structure, not a pointer to it. To get the raw data, use the handle in the call to GetRawInputData.
Raw input is available only when the application calls RegisterRawInputDevices with valid device specifications
Notification Requirements
| Minimum DLL Version |
None |
|---|
| Header | Declared in Winuser.h, include Windows.h |
|---|
| Minimum operating systems |
Windows XP |
|---|
See Also