diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-12-22 18:35:53 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-12-22 18:35:53 +0100 |
| commit | cff212dbe28487c14ab040829877d77378a61344 (patch) | |
| tree | d629334e7f45c0d5333411616bc653d66f92ced1 /include/mtdev.h | |
| parent | 56a77e68fb91eef928d8a95c50ae14508e37ae0f (diff) | |
Add support for ABS_MT_DISTANCE
In the upcoming 2.6.38 kernel, support for hovering is introduced.
Add the ABS_MT_DISTANCE to the extended set of handled ABS_MT events.
The change is binary compatible with existing libraries.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/mtdev.h')
| -rw-r--r-- | include/mtdev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mtdev.h b/include/mtdev.h index df74e95..ba682c5 100644 --- a/include/mtdev.h +++ b/include/mtdev.h | |||
| @@ -63,6 +63,11 @@ extern "C" { | |||
| 63 | #define ABS_MT_SLOT 0x2f /* MT slot being modified */ | 63 | #define ABS_MT_SLOT 0x2f /* MT slot being modified */ |
| 64 | #endif | 64 | #endif |
| 65 | 65 | ||
| 66 | /* includes available in 2.6.38 */ | ||
| 67 | #ifndef ABS_MT_DISTANCE | ||
| 68 | #define ABS_MT_DISTANCE 0x3b /* Contact hover distance */ | ||
| 69 | #endif | ||
| 70 | |||
| 66 | #define MT_ID_NULL (-1) | 71 | #define MT_ID_NULL (-1) |
| 67 | #define MT_ID_MIN 0 | 72 | #define MT_ID_MIN 0 |
| 68 | #define MT_ID_MAX 65535 | 73 | #define MT_ID_MAX 65535 |
