Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aaf34e3f
Commit
aaf34e3f
authored
May 31, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add more HID digitizer usage definitions.
parent
abee0d45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
hidusage.h
include/hidusage.h
+2
-0
hid.h
include/wine/hid.h
+12
-0
No files found.
include/hidusage.h
View file @
aaf34e3f
...
...
@@ -31,6 +31,7 @@ typedef USHORT USAGE, *PUSAGE;
#define HID_USAGE_DIGITIZER_PEN ((USAGE) 0x02)
#define HID_USAGE_DIGITIZER_TOUCH_SCREEN ((USAGE) 0x04)
#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_IN_RANGE ((USAGE) 0x32)
#define HID_USAGE_DIGITIZER_X_TILT ((USAGE) 0x3D)
...
...
@@ -38,6 +39,7 @@ typedef USHORT USAGE, *PUSAGE;
#define HID_USAGE_DIGITIZER_AZIMUTH ((USAGE) 0x3F)
#define HID_USAGE_DIGITIZER_TIP_SWITCH ((USAGE) 0x42)
#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_MOUSE ((USAGE) 0x02)
...
...
include/wine/hid.h
View file @
aaf34e3f
...
...
@@ -117,6 +117,18 @@ struct hid_preparsed_data
#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)
/* 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 */
/* From USB Device Class Definition for Physical Interface Devices */
/* https://www.usb.org/sites/default/files/documents/pid1_01.pdf */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment