mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 17:23:37 +00:00
winuser.h: Declare some raw input related structures.
This commit is contained in:
parent
e90635f5b6
commit
a55b005fe4
|
@ -444,6 +444,48 @@ typedef struct tagINPUT
|
|||
} 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
|
||||
{
|
||||
DWORD cbSize;
|
||||
|
@ -1083,6 +1125,9 @@ BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
|
|||
#define WM_NCXBUTTONUP 0x00ac
|
||||
#define WM_NCXBUTTONDBLCLK 0x00ad
|
||||
|
||||
/* Raw input */
|
||||
#define WM_INPUT 0x00ff
|
||||
|
||||
/* Keyboard messages */
|
||||
#define WM_KEYDOWN 0x0100
|
||||
#define WM_KEYUP 0x0101
|
||||
|
|
Loading…
Reference in a new issue