Commit aaf34e3f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

include: Add more HID digitizer usage definitions.

parent abee0d45
...@@ -31,6 +31,7 @@ typedef USHORT USAGE, *PUSAGE; ...@@ -31,6 +31,7 @@ typedef USHORT USAGE, *PUSAGE;
#define HID_USAGE_DIGITIZER_PEN ((USAGE) 0x02) #define HID_USAGE_DIGITIZER_PEN ((USAGE) 0x02)
#define HID_USAGE_DIGITIZER_TOUCH_SCREEN ((USAGE) 0x04) #define HID_USAGE_DIGITIZER_TOUCH_SCREEN ((USAGE) 0x04)
#define HID_USAGE_DIGITIZER_TOUCH_PAD ((USAGE) 0x05) #define HID_USAGE_DIGITIZER_TOUCH_PAD ((USAGE) 0x05)
#define HID_USAGE_DIGITIZER_FINGER ((USAGE) 0x22)
#define HID_USAGE_DIGITIZER_TIP_PRESSURE ((USAGE) 0x30) #define HID_USAGE_DIGITIZER_TIP_PRESSURE ((USAGE) 0x30)
#define HID_USAGE_DIGITIZER_IN_RANGE ((USAGE) 0x32) #define HID_USAGE_DIGITIZER_IN_RANGE ((USAGE) 0x32)
#define HID_USAGE_DIGITIZER_X_TILT ((USAGE) 0x3D) #define HID_USAGE_DIGITIZER_X_TILT ((USAGE) 0x3D)
...@@ -38,6 +39,7 @@ typedef USHORT USAGE, *PUSAGE; ...@@ -38,6 +39,7 @@ typedef USHORT USAGE, *PUSAGE;
#define HID_USAGE_DIGITIZER_AZIMUTH ((USAGE) 0x3F) #define HID_USAGE_DIGITIZER_AZIMUTH ((USAGE) 0x3F)
#define HID_USAGE_DIGITIZER_TIP_SWITCH ((USAGE) 0x42) #define HID_USAGE_DIGITIZER_TIP_SWITCH ((USAGE) 0x42)
#define HID_USAGE_DIGITIZER_BARREL_SWITCH ((USAGE) 0x44) #define HID_USAGE_DIGITIZER_BARREL_SWITCH ((USAGE) 0x44)
#define HID_USAGE_DIGITIZER_CONFIDENCE ((USAGE) 0x47)
#define HID_USAGE_GENERIC_POINTER ((USAGE) 0x01) #define HID_USAGE_GENERIC_POINTER ((USAGE) 0x01)
#define HID_USAGE_GENERIC_MOUSE ((USAGE) 0x02) #define HID_USAGE_GENERIC_MOUSE ((USAGE) 0x02)
......
...@@ -117,6 +117,18 @@ struct hid_preparsed_data ...@@ -117,6 +117,18 @@ struct hid_preparsed_data
#define HID_FEATURE_VALUE_CAPS(d) ((d)->value_caps + (d)->feature_caps_start) #define HID_FEATURE_VALUE_CAPS(d) ((d)->value_caps + (d)->feature_caps_start)
#define HID_COLLECTION_NODES(d) (struct hid_collection_node *)((char *)(d)->value_caps + (d)->caps_size) #define HID_COLLECTION_NODES(d) (struct hid_collection_node *)((char *)(d)->value_caps + (d)->caps_size)
/* Wine-specific Digitizer page usages, not declared in hidusage.h */
/* From HID Usage Tables */
/* https://usb.org/sites/default/files/hut1_22.pdf */
#define HID_USAGE_DIGITIZER_WIDTH ((USAGE) 0x48)
#define HID_USAGE_DIGITIZER_HEIGHT ((USAGE) 0x49)
#define HID_USAGE_DIGITIZER_CONTACT_ID ((USAGE) 0x51)
#define HID_USAGE_DIGITIZER_CONTACT_COUNT ((USAGE) 0x54)
#define HID_USAGE_DIGITIZER_CONTACT_COUNT_MAX ((USAGE) 0x55)
#define HID_USAGE_DIGITIZER_SCAN_TIME ((USAGE) 0x56)
/* Wine-specific Physical Interface Device usages */ /* Wine-specific Physical Interface Device usages */
/* From USB Device Class Definition for Physical Interface Devices */ /* From USB Device Class Definition for Physical Interface Devices */
/* https://www.usb.org/sites/default/files/documents/pid1_01.pdf */ /* https://www.usb.org/sites/default/files/documents/pid1_01.pdf */
......
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