diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-03-21 14:57:42 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-03-21 14:57:42 +0100 |
| commit | d5b3178ca184dee4b3116e5b569745d43dbe37ef (patch) | |
| tree | bc0cef4cb7d59398074675e28089c6a9a775e6fb /src/common.h | |
| parent | cc7c4c6ebfbd35ed16e9da8d5c70431fce9f31cd (diff) | |
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 <rydberg@euromail.se>
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ | |||
| 48 | #define MT_TOOL_PEN 1 | 48 | #define MT_TOOL_PEN 1 |
| 49 | #endif | 49 | #endif |
| 50 | 50 | ||
| 51 | /* includes available in 2.6.33 */ | ||
| 52 | #ifndef ABS_MT_PRESSURE | ||
| 53 | #define ABS_MT_PRESSURE 0x3a /* Pressure on contact area */ | ||
| 54 | #endif | ||
| 55 | |||
| 51 | #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) | 56 | #define SYSCALL(call) while (((call) == -1) && (errno == EINTR)) |
| 52 | 57 | ||
| 53 | #define BITMASK(x) (1U << (x)) | 58 | #define BITMASK(x) (1U << (x)) |
