diff options
| author | Henrik Rydberg <rydberg@bitmath.org> | 2010-09-07 15:38:19 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-09-07 16:08:44 +0200 |
| commit | 676b4003302e025d10a0822357c55b97dbab3707 (patch) | |
| tree | 4d575e9f05dbd3870dd32e1ecfe537ab6aba5c4b | |
| parent | a2ea1c9154c0d746f8c4e72425435fc017324d43 (diff) | |
Complete mtdev property mapping
Add the missing property values to the mapgen output, and insert the
result in the mtdev mapping header file.
Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
| -rw-r--r-- | include/mtdev-mapping.h | 9 | ||||
| -rw-r--r-- | test/mtdev-mapgen.c | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/include/mtdev-mapping.h b/include/mtdev-mapping.h index 039a2d5..cb4c326 100644 --- a/include/mtdev-mapping.h +++ b/include/mtdev-mapping.h | |||
| @@ -33,14 +33,17 @@ | |||
| 33 | 33 | ||
| 34 | #include <mtdev.h> | 34 | #include <mtdev.h> |
| 35 | 35 | ||
| 36 | #define MTDEV_TRACKING_ID 9 | ||
| 37 | #define MTDEV_POSITION_X 5 | ||
| 38 | #define MTDEV_POSITION_Y 6 | ||
| 39 | #define MTDEV_TOUCH_MAJOR 0 | 36 | #define MTDEV_TOUCH_MAJOR 0 |
| 40 | #define MTDEV_TOUCH_MINOR 1 | 37 | #define MTDEV_TOUCH_MINOR 1 |
| 41 | #define MTDEV_WIDTH_MAJOR 2 | 38 | #define MTDEV_WIDTH_MAJOR 2 |
| 42 | #define MTDEV_WIDTH_MINOR 3 | 39 | #define MTDEV_WIDTH_MINOR 3 |
| 43 | #define MTDEV_ORIENTATION 4 | 40 | #define MTDEV_ORIENTATION 4 |
| 41 | #define MTDEV_POSITION_X 5 | ||
| 42 | #define MTDEV_POSITION_Y 6 | ||
| 43 | #define MTDEV_TOOL_TYPE 7 | ||
| 44 | #define MTDEV_BLOB_ID 8 | ||
| 45 | #define MTDEV_TRACKING_ID 9 | ||
| 46 | #define MTDEV_PRESSURE 10 | ||
| 44 | 47 | ||
| 45 | static const unsigned int mtdev_map_abs2mt[ABS_CNT] = { | 48 | static const unsigned int mtdev_map_abs2mt[ABS_CNT] = { |
| 46 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | 49 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
diff --git a/test/mtdev-mapgen.c b/test/mtdev-mapgen.c index 0200175..8f70998 100644 --- a/test/mtdev-mapgen.c +++ b/test/mtdev-mapgen.c | |||
| @@ -63,14 +63,17 @@ int main(int argc, char *argv[]) | |||
| 63 | for (i = 0; i < MT_ABS_SIZE; i++) | 63 | for (i = 0; i < MT_ABS_SIZE; i++) |
| 64 | printf(" 0x%04x,%s", cmt2abs[i], newln(i, MT_ABS_SIZE)); | 64 | printf(" 0x%04x,%s", cmt2abs[i], newln(i, MT_ABS_SIZE)); |
| 65 | printf("};\n\n"); | 65 | printf("};\n\n"); |
| 66 | BIT_DEF(TRACKING_ID); | ||
| 67 | BIT_DEF(POSITION_X); | ||
| 68 | BIT_DEF(POSITION_Y); | ||
| 69 | BIT_DEF(TOUCH_MAJOR); | 66 | BIT_DEF(TOUCH_MAJOR); |
| 70 | BIT_DEF(TOUCH_MINOR); | 67 | BIT_DEF(TOUCH_MINOR); |
| 71 | BIT_DEF(WIDTH_MAJOR); | 68 | BIT_DEF(WIDTH_MAJOR); |
| 72 | BIT_DEF(WIDTH_MINOR); | 69 | BIT_DEF(WIDTH_MINOR); |
| 73 | BIT_DEF(ORIENTATION); | 70 | BIT_DEF(ORIENTATION); |
| 71 | BIT_DEF(POSITION_X); | ||
| 72 | BIT_DEF(POSITION_Y); | ||
| 73 | BIT_DEF(TOOL_TYPE); | ||
| 74 | BIT_DEF(BLOB_ID); | ||
| 75 | BIT_DEF(TRACKING_ID); | ||
| 76 | BIT_DEF(PRESSURE); | ||
| 74 | printf("\n"); | 77 | printf("\n"); |
| 75 | return 0; | 78 | return 0; |
| 76 | } | 79 | } |
