aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/input.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2012-06-27 03:53:47 -0400
committerHenrik Rydberg <rydberg@euromail.se>2012-07-05 01:13:51 -0400
commitcab7faca5e446b84e829d57d2095035d72edba09 (patch)
tree2dd72400210b44cdc0d85edb4d3f46de21138b04 /include/linux/input.h
parentfdf804210f297b7a114fa7a216c2ab65b0f693da (diff)
Input: MT - Include win8 support
The newly released HID protocol for win8 multitouch devices is capable of transmitting more information about each touch. In particular, it includes details useful for touch alignment. This patch completes the MT protocol with the ABS_MT_TOOL_X/Y events, and documents how to map win8 devices. Cc: Stephane Chatty <chatty@enac.fr> Cc: Benjamin Tissoires <benjamin.tissoires@enac.fr> Cc: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r--include/linux/input.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index a81671453575..cacb95343a7e 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -806,18 +806,20 @@ struct input_keymap_entry {
806#define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */ 806#define ABS_MT_WIDTH_MAJOR 0x32 /* Major axis of approaching ellipse */
807#define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */ 807#define ABS_MT_WIDTH_MINOR 0x33 /* Minor axis (omit if circular) */
808#define ABS_MT_ORIENTATION 0x34 /* Ellipse orientation */ 808#define ABS_MT_ORIENTATION 0x34 /* Ellipse orientation */
809#define ABS_MT_POSITION_X 0x35 /* Center X ellipse position */ 809#define ABS_MT_POSITION_X 0x35 /* Center X touch position */
810#define ABS_MT_POSITION_Y 0x36 /* Center Y ellipse position */ 810#define ABS_MT_POSITION_Y 0x36 /* Center Y touch position */
811#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device */ 811#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device */
812#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */ 812#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
813#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */ 813#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */
814#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */ 814#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */
815#define ABS_MT_DISTANCE 0x3b /* Contact hover distance */ 815#define ABS_MT_DISTANCE 0x3b /* Contact hover distance */
816#define ABS_MT_TOOL_X 0x3c /* Center X tool position */
817#define ABS_MT_TOOL_Y 0x3d /* Center Y tool position */
816 818
817#ifdef __KERNEL__ 819#ifdef __KERNEL__
818/* Implementation details, userspace should not care about these */ 820/* Implementation details, userspace should not care about these */
819#define ABS_MT_FIRST ABS_MT_TOUCH_MAJOR 821#define ABS_MT_FIRST ABS_MT_TOUCH_MAJOR
820#define ABS_MT_LAST ABS_MT_DISTANCE 822#define ABS_MT_LAST ABS_MT_TOOL_Y
821#endif 823#endif
822 824
823#define ABS_MAX 0x3f 825#define ABS_MAX 0x3f