Commit a55b005f authored by Kovács András's avatar Kovács András Committed by Alexandre Julliard

winuser.h: Declare some raw input related structures.

parent e90635f5
...@@ -444,6 +444,48 @@ typedef struct tagINPUT ...@@ -444,6 +444,48 @@ typedef struct tagINPUT
} INPUT, *PINPUT, *LPINPUT; } INPUT, *PINPUT, *LPINPUT;
typedef struct tagRAWINPUTDEVICE {
USHORT usUsagePage;
USHORT usUsage;
DWORD dwFlags;
HWND hwndTarget;
} RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE;
typedef struct tagRID_DEVICE_INFO_MOUSE {
DWORD dwId;
DWORD dwNumberOfButtons;
DWORD dwSampleRate;
BOOL fHasHorizontalWheel;
} RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE;
typedef struct tagRID_DEVICE_INFO_KEYBOARD {
DWORD dwType;
DWORD dwSubType;
DWORD dwKeyboardMode;
DWORD dwNumberOfFunctionKeys;
DWORD dwNumberOfIndicators;
DWORD dwNumberOfKeysTotal;
} RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD;
typedef struct tagRID_DEVICE_INFO_HID {
DWORD dwVendorId;
DWORD dwProductId;
DWORD dwVersionNumber;
USHORT usUsagePage;
USHORT usUsage;
} RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID;
typedef struct tagRID_DEVICE_INFO {
DWORD cbSize;
DWORD dwType;
union {
RID_DEVICE_INFO_MOUSE mouse;
RID_DEVICE_INFO_KEYBOARD keyboard;
RID_DEVICE_INFO_HID hid;
} DUMMYUNIONNAME;
} RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO;
typedef struct tagGUITHREADINFO typedef struct tagGUITHREADINFO
{ {
DWORD cbSize; DWORD cbSize;
...@@ -1083,6 +1125,9 @@ BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*); ...@@ -1083,6 +1125,9 @@ BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
#define WM_NCXBUTTONUP 0x00ac #define WM_NCXBUTTONUP 0x00ac
#define WM_NCXBUTTONDBLCLK 0x00ad #define WM_NCXBUTTONDBLCLK 0x00ad
/* Raw input */
#define WM_INPUT 0x00ff
/* Keyboard messages */ /* Keyboard messages */
#define WM_KEYDOWN 0x0100 #define WM_KEYDOWN 0x0100
#define WM_KEYUP 0x0101 #define WM_KEYUP 0x0101
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment