aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-21 18:56:49 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-21 18:56:49 +0200
commit7380af2c93dc83f4f09e293717d46eadf7799e89 (patch)
tree2eb11199ef87e3181411bb848252bb5d6fed0be6 /include
parent71168e1fb794f4a24e97177508bb1d54ae24b266 (diff)
downloadxorg-input-kobomultitouch-7380af2c93dc83f4f09e293717d46eadf7799e89.tar.gz
xorg-input-kobomultitouch-7380af2c93dc83f4f09e293717d46eadf7799e89.tar.bz2
xorg-input-kobomultitouch-7380af2c93dc83f4f09e293717d46eadf7799e89.zip
Simplify event reading
This patch puts the reading code more in line with the upcoming mtdev library, and should remove some spurious input behavior. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
-rw-r--r--include/hwstate.h4
-rw-r--r--include/mtouch.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/include/hwstate.h b/include/hwstate.h
index 4243292..efd291f 100644
--- a/include/hwstate.h
+++ b/include/hwstate.h
@@ -42,8 +42,8 @@ struct HWState {
void init_hwstate(struct HWState *s,
const struct Capabilities *caps);
-int modify_hwstate(struct HWState *s, struct MTDev *dev,
- const struct Capabilities *caps);
+int hwstate_read(struct HWState *s, const struct Capabilities *caps,
+ const struct input_event *ev);
void output_hwstate(const struct HWState *s);
static inline int finger_dist2(const struct FingerState *a,
diff --git a/include/mtouch.h b/include/mtouch.h
index c73eb29..482d010 100644
--- a/include/mtouch.h
+++ b/include/mtouch.h
@@ -36,11 +36,12 @@ struct MTouch {
int configure_mtouch(struct MTouch *mt, int fd);
int open_mtouch(struct MTouch *mt, int fd);
+int get_mtouch(struct MTouch *mt, int fd, struct input_event* ev, int ev_max);
int close_mtouch(struct MTouch *mt, int fd);
int parse_event(struct MTouch *mt, const struct input_event *ev);
-int mt_is_idle(struct MTouch *mt, int fd);
+int has_delayed_gestures(struct MTouch *mt, int fd);
static inline void mt_delay_movement(struct MTouch *mt, int t)
{