This section describes how the system provides raw input to your application and how an application receives and processes that input. Raw input is sometimes referred to as generic input.
Overviews
About Raw Input
This topic discusses user-input from devices such as joysticks, touch screens, and microphones.
Using Raw Input
This section includes sample code for tasks relating to raw input.
Functions
DefRawInputProc
The DefRawInputProc function calls the default raw input procedure to provide default processing for any raw input messages that an application does not process. This function ensures that every message is processed. DefRawInputProc is called with the same parameters received by the window procedure.
GetRawInputBuffer
The GetRawInputBuffer function does a buffered read of the raw input data.
GetRawInputData
The GetRawInputData function gets the raw input from the specified device.
GetRawInputDeviceInfo
The GetRawInputDeviceInfo function gets information about the raw input device.
GetRegisteredRawInputDevices
The GetRegisteredRawInputDevices function gets the information about the raw input devices for the current application.
RegisterRawInputDevices
The RegisterRawInputDevices function registers the devices that supply the raw input data.
Macros
GET_RAWINPUT_CODE_WPARAM
The GET_RAWINPUT_CODE_WPARAM macro gets the input code from
wParam in WM_INPUT.
NEXTRAWINPUTBLOCK
The NEXTRAWINPUTBLOCK macro gets the location of the next structure in an array of RAWINPUT structures.
Notifications
WM_INPUT
The WM_INPUT message is sent to the window that is getting raw input.
A window receives this message through its WindowProc function.
Structures
RAWHID
The RAWHID structure describes the format of the raw input from a Human Interface Device (HID).
RAWINPUT
The RAWINPUT structure contains the raw input from a device.
RAWINPUTDEVICE
The RAWINPUTDEVICE structure defines information for the raw input devices.
RAWINPUTDEVICELIST
The RAWINPUTDEVICELIST structure contains information about a raw input device.
RAWINPUTHEADER
The RAWINPUTHEADER structure contains the header information that is part of the raw input data.
RAWKEYBOARD
The RAWKEYBOARD structure contains information about the state of the keyboard.
RAWMOUSE
The RAWMOUSE structure contains information about the state of the mouse.
RID_DEVICE_INFO
The RID_DEVICE_INFO structure defines the raw input data coming from any device.
RID_DEVICE_INFO_HID
The RID_DEVICE_INFO_HID structure defines the raw input data coming from the specified HID.
RID_DEVICE_INFO_KEYBOARD
The RID_DEVICE_INFO_KEYBOARD structure defines the raw input data coming from the specified keyboard.
RID_DEVICE_INFO_MOUSE
Defines the raw input data coming from the specified mouse.