[PATCH 01/16] Input: add the ABS_MT_PRESSURE event
Andy Whitcroft
apw at canonical.com
Tue Mar 30 19:40:08 UTC 2010
From: Henrik Rydberg <rydberg at euromail.se>
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 at samsung.com>
Requested-by: Mika Kuoppala <mika.kuoppala at nokia.com>
Requested-by: Peter Hutterer <peter.hutterer at who-t.net>
Signed-off-by: Henrik Rydberg <rydberg at euromail.se>
Signed-off-by: Dmitry Torokhov <dtor at mail.ru>
(cherry picked from commit cb6ecf6f7afece066265e243657b0ac28150a7b2)
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
drivers/input/input.c | 1 +
include/linux/input.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/input/input.c b/drivers/input/input.c
index be7ca26..6fc569e 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -45,6 +45,7 @@ static unsigned int input_abs_bypass_init_data[] __initdata = {
ABS_MT_TOOL_TYPE,
ABS_MT_BLOB_ID,
ABS_MT_TRACKING_ID,
+ ABS_MT_PRESSURE,
0
};
static unsigned long input_abs_bypass[BITS_TO_LONGS(ABS_CNT)];
diff --git a/include/linux/input.h b/include/linux/input.h
index 85ccaf5..746d426 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -700,6 +700,7 @@ struct input_absinfo {
#define ABS_MT_TOOL_TYPE 0x37 /* Type of touching device */
#define ABS_MT_BLOB_ID 0x38 /* Group a set of packets as a blob */
#define ABS_MT_TRACKING_ID 0x39 /* Unique ID of initiated contact */
+#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */
#define ABS_MAX 0x3f
#define ABS_CNT (ABS_MAX+1)
--
1.7.0
More information about the kernel-team
mailing list