diff options
author | Stephane Chatty <chatty@enac.fr> | 2009-05-20 09:41:24 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-05-20 09:48:35 -0400 |
commit | 89f536ccfa8b370ff4d054f4061858ca9322c25a (patch) | |
tree | 51a2ac408a3fe1d682d218a397f7cd8d30176ebe /include/linux/hid.h | |
parent | a4f1cb9f3c42e5d278b0678ed5225d9331a8dcff (diff) |
HID: add new multitouch and digitizer contants
Added constants to hid.h for all digitizer usages (including the new multitouch
ones that are not yet in the official USB spec but are being pushed by Microsft
as described in their paper "Digitizer Drivers for Windows Touch and Pen-Based
Computers"). Updated hid-debug.c to support the new MT input constants such as
ABS_MT_POSITION_X.
Signed-off-by: Stephane Chatty <chatty@enac.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index a72876e43589..53489fd4d700 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
@@ -238,6 +238,42 @@ struct hid_item { | |||
238 | #define HID_GD_RIGHT 0x00010092 | 238 | #define HID_GD_RIGHT 0x00010092 |
239 | #define HID_GD_LEFT 0x00010093 | 239 | #define HID_GD_LEFT 0x00010093 |
240 | 240 | ||
241 | #define HID_DG_DIGITIZER 0x000d0001 | ||
242 | #define HID_DG_PEN 0x000d0002 | ||
243 | #define HID_DG_LIGHTPEN 0x000d0003 | ||
244 | #define HID_DG_TOUCHSCREEN 0x000d0004 | ||
245 | #define HID_DG_TOUCHPAD 0x000d0005 | ||
246 | #define HID_DG_STYLUS 0x000d0020 | ||
247 | #define HID_DG_PUCK 0x000d0021 | ||
248 | #define HID_DG_FINGER 0x000d0022 | ||
249 | #define HID_DG_TIPPRESSURE 0x000d0030 | ||
250 | #define HID_DG_BARRELPRESSURE 0x000d0031 | ||
251 | #define HID_DG_INRANGE 0x000d0032 | ||
252 | #define HID_DG_TOUCH 0x000d0033 | ||
253 | #define HID_DG_UNTOUCH 0x000d0034 | ||
254 | #define HID_DG_TAP 0x000d0035 | ||
255 | #define HID_DG_TABLETFUNCTIONKEY 0x000d0039 | ||
256 | #define HID_DG_PROGRAMCHANGEKEY 0x000d003a | ||
257 | #define HID_DG_INVERT 0x000d003c | ||
258 | #define HID_DG_TIPSWITCH 0x000d0042 | ||
259 | #define HID_DG_TIPSWITCH2 0x000d0043 | ||
260 | #define HID_DG_BARRELSWITCH 0x000d0044 | ||
261 | #define HID_DG_ERASER 0x000d0045 | ||
262 | #define HID_DG_TABLETPICK 0x000d0046 | ||
263 | /* | ||
264 | * as of May 20, 2009 the usages below are not yet in the official USB spec | ||
265 | * but are being pushed by Microsft as described in their paper "Digitizer | ||
266 | * Drivers for Windows Touch and Pen-Based Computers" | ||
267 | */ | ||
268 | #define HID_DG_CONFIDENCE 0x000d0047 | ||
269 | #define HID_DG_WIDTH 0x000d0048 | ||
270 | #define HID_DG_HEIGHT 0x000d0049 | ||
271 | #define HID_DG_CONTACTID 0x000d0051 | ||
272 | #define HID_DG_INPUTMODE 0x000d0052 | ||
273 | #define HID_DG_DEVICEINDEX 0x000d0053 | ||
274 | #define HID_DG_CONTACTCOUNT 0x000d0054 | ||
275 | #define HID_DG_CONTACTMAX 0x000d0055 | ||
276 | |||
241 | /* | 277 | /* |
242 | * HID report types --- Ouch! HID spec says 1 2 3! | 278 | * HID report types --- Ouch! HID spec says 1 2 3! |
243 | */ | 279 | */ |