File tree Expand file tree Collapse file tree 7 files changed +233
-178
lines changed Expand file tree Collapse file tree 7 files changed +233
-178
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,11 @@ the request was handled successfully.
93
93
event to the kernel. The payload is of type struct uhid_create_req and
94
94
contains information about your device. You can start I/O now.
95
95
96
+ UHID_CREATE2:
97
+ Same as UHID_CREATE, but the HID report descriptor data (rd_data) is an array
98
+ inside struct uhid_create2_req, instead of a pointer to a separate array.
99
+ Enables use from languages that don't support pointers, e.g. Python.
100
+
96
101
UHID_DESTROY:
97
102
This destroys the internal HID device. No further I/O will be accepted. There
98
103
may still be pending messages that you can receive with read() but no further
@@ -105,6 +110,12 @@ the request was handled successfully.
105
110
contains a data-payload. This is the raw data that you read from your device.
106
111
The kernel will parse the HID reports and react on it.
107
112
113
+ UHID_INPUT2:
114
+ Same as UHID_INPUT, but the data array is the last field of uhid_input2_req.
115
+ Enables userspace to write only the required bytes to kernel (ev.type +
116
+ ev.u.input2.size + the part of the data array that matters), instead of
117
+ the entire struct uhid_input2_req.
118
+
108
119
UHID_FEATURE_ANSWER:
109
120
If you receive a UHID_FEATURE request you must answer with this request. You
110
121
must copy the "id" field from the request into the answer. Set the "err" field
Original file line number Diff line number Diff line change 67
67
#define USB_VENDOR_ID_ALPS 0x0433
68
68
#define USB_DEVICE_ID_IBM_GAMEPAD 0x1101
69
69
70
+ #define USB_VENDOR_ID_ANTON 0x1130
71
+ #define USB_DEVICE_ID_ANTON_TOUCH_PAD 0x3101
72
+
70
73
#define USB_VENDOR_ID_APPLE 0x05ac
71
74
#define USB_DEVICE_ID_APPLE_MIGHTYMOUSE 0x0304
72
75
#define USB_DEVICE_ID_APPLE_MAGICMOUSE 0x030d
You can’t perform that action at this time.
0 commit comments