From 4583da1ad81b59b2a8cd2ae51c32b1bc8d32f1c4 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 15 Jun 2010 19:40:34 +0200 Subject: refactor: Generate code for ABS_MT mapping Use the kernel-provided list MT_SLOT_ABS_EVENTS to generate code mappings between ABS_MT space and MT space. This patch adds the program mapgen that does the mapping, and adds two include files generated with it. Signed-off-by: Henrik Rydberg --- include/mtbit.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/mtbit.h (limited to 'include/mtbit.h') diff --git a/include/mtbit.h b/include/mtbit.h new file mode 100644 index 0000000..2c4dacb --- /dev/null +++ b/include/mtbit.h @@ -0,0 +1,14 @@ +/* generated by mapgen - do not edit */ + +#ifndef MTBIT_H +#define MTBIT_H + +#define BIT_TRACKING_ID 9 +#define BIT_POSITION_X 5 +#define BIT_POSITION_Y 6 +#define BIT_TOUCH_MAJOR 0 +#define BIT_TOUCH_MINOR 1 +#define BIT_WIDTH_MAJOR 2 +#define BIT_WIDTH_MINOR 3 + +#endif -- cgit v1.2.3