aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtdev-caps.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-15 20:24:14 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-16 02:28:08 +0200
commit78085b21f2dc7b1d49a0c54ab56b567fc195d440 (patch)
tree3ae649c25b380114ce2eaa5463350fb9b29ee78c /include/mtdev-caps.h
parent4583da1ad81b59b2a8cd2ae51c32b1bc8d32f1c4 (diff)
downloadxorg-input-kobomultitouch-78085b21f2dc7b1d49a0c54ab56b567fc195d440.tar.gz
xorg-input-kobomultitouch-78085b21f2dc7b1d49a0c54ab56b567fc195d440.tar.bz2
xorg-input-kobomultitouch-78085b21f2dc7b1d49a0c54ab56b567fc195d440.zip
refactor: Simplify capabilities
Use the generated abs2mt mapping to simplify the MT device capabilities. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/mtdev-caps.h')
-rw-r--r--include/mtdev-caps.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/include/mtdev-caps.h b/include/mtdev-caps.h
index 8f88404..4460eca 100644
--- a/include/mtdev-caps.h
+++ b/include/mtdev-caps.h
@@ -23,25 +23,18 @@
#define MTDEV_CAPS_H
#include "common.h"
+#include "abs2mt.h"
+#include "mtbit.h"
struct Capabilities {
struct input_id devid;
char devname[32];
- int has_left, has_middle;
- int has_right, has_mtdata, has_ibt;
- int has_touch_major, has_touch_minor;
- int has_width_major, has_width_minor;
- int has_orientation, has_dummy;
- int has_position_x, has_position_y;
- struct input_absinfo abs_touch_major;
- struct input_absinfo abs_touch_minor;
- struct input_absinfo abs_width_major;
- struct input_absinfo abs_width_minor;
- struct input_absinfo abs_orientation;
- struct input_absinfo abs_position_x;
- struct input_absinfo abs_position_y;
- int xfuzz, yfuzz, wfuzz;
- int yclick;
+ int has_left, has_middle, has_right;
+ int has_mtdata, has_ibt;
+ int has_slot, nullid;
+ int has_abs[MT_ABS_SIZE];
+ struct input_absinfo slot;
+ struct input_absinfo abs[MT_ABS_SIZE];
};
int read_capabilities(struct Capabilities *cap, int fd);