From d5b3178ca184dee4b3116e5b569745d43dbe37ef Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 21 Mar 2010 14:57:42 +0100 Subject: Add support for the ABS_MT_PRESSURE event The kernel MT api was recently updated to include the ABS_MT_PRESSURE event. This patch adds it to the hardware structure. Signed-off-by: Henrik Rydberg --- src/common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index f64e114..27082b7 100644 --- a/src/common.h +++ b/src/common.h @@ -48,6 +48,11 @@ #define MT_TOOL_PEN 1 #endif +/* includes available in 2.6.33 */ +#ifndef ABS_MT_PRESSURE +#define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */ +#endif + #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) #define BITMASK(x) (1U << (x)) -- cgit v1.2.3