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 /test/mtdev-mapgen.c | |
| 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 'test/mtdev-mapgen.c')
| -rw-r--r-- | test/mtdev-mapgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mtdev-mapgen.c b/test/mtdev-mapgen.c index dc1ba91..c34cb7e 100644 --- a/test/mtdev-mapgen.c +++ b/test/mtdev-mapgen.c | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | #include <mtdev.h> | 30 | #include <mtdev.h> |
| 31 | #include <stdio.h> | 31 | #include <stdio.h> |
| 32 | 32 | ||
| 33 | #define MT_ABS_SIZE 11 | 33 | #define MT_ABS_SIZE 12 |
| 34 | #define MT_SLOT_ABS_EVENTS { \ | 34 | #define MT_SLOT_ABS_EVENTS { \ |
| 35 | ABS_MT_TOUCH_MAJOR, \ | 35 | ABS_MT_TOUCH_MAJOR, \ |
| 36 | ABS_MT_TOUCH_MINOR, \ | 36 | ABS_MT_TOUCH_MINOR, \ |
| @@ -43,6 +43,7 @@ | |||
| 43 | ABS_MT_BLOB_ID, \ | 43 | ABS_MT_BLOB_ID, \ |
| 44 | ABS_MT_TRACKING_ID, \ | 44 | ABS_MT_TRACKING_ID, \ |
| 45 | ABS_MT_PRESSURE, \ | 45 | ABS_MT_PRESSURE, \ |
| 46 | ABS_MT_DISTANCE, \ | ||
| 46 | } | 47 | } |
| 47 | 48 | ||
| 48 | static unsigned int cabs2mt[ABS_CNT]; | 49 | static unsigned int cabs2mt[ABS_CNT]; |
