Commit cb6ecf6f7afece066265e243657b0ac28150a7b2

Authored by Henrik Rydberg
Committed by Dmitry Torokhov
1 parent 93fb84b50f

Input: add the ABS_MT_PRESSURE event

For pressure-based multi-touch devices, a direct way to send sensor
intensity data per finger is needed. This patch adds the ABS_MT_PRESSURE
event to the MT protocol.

Requested-by: Yoonyoung Shim <jy0922.shim@samsung.com>
Requested-by: Mika Kuoppala <mika.kuoppala@nokia.com>
Requested-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

Showing 2 changed files with 2 additions and 0 deletions Side-by-side Diff

drivers/input/input.c
... ... @@ -46,6 +46,7 @@
46 46 ABS_MT_TOOL_TYPE,
47 47 ABS_MT_BLOB_ID,
48 48 ABS_MT_TRACKING_ID,
  49 + ABS_MT_PRESSURE,
49 50 0
50 51 };
51 52 static unsigned long input_abs_bypass[BITS_TO_LONGS(ABS_CNT)];
include/linux/input.h
... ... @@ -660,6 +660,7 @@
660 660 #define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device */
661 661 #define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
662 662 #define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */
  663 +#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */
663 664  
664 665 #define ABS_MAX 0x3f
665 666 #define ABS_CNT (ABS_MAX+1)