diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-06-21 18:56:49 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-06-21 18:56:49 +0200 |
| commit | 7380af2c93dc83f4f09e293717d46eadf7799e89 (patch) | |
| tree | 2eb11199ef87e3181411bb848252bb5d6fed0be6 /include/mtouch.h | |
| parent | 71168e1fb794f4a24e97177508bb1d54ae24b266 (diff) | |
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/mtouch.h')
| -rw-r--r-- | include/mtouch.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 { | |||
| 36 | 36 | ||
| 37 | int configure_mtouch(struct MTouch *mt, int fd); | 37 | int configure_mtouch(struct MTouch *mt, int fd); |
| 38 | int open_mtouch(struct MTouch *mt, int fd); | 38 | int open_mtouch(struct MTouch *mt, int fd); |
| 39 | int get_mtouch(struct MTouch *mt, int fd, struct input_event* ev, int ev_max); | ||
| 39 | int close_mtouch(struct MTouch *mt, int fd); | 40 | int close_mtouch(struct MTouch *mt, int fd); |
| 40 | 41 | ||
| 41 | int parse_event(struct MTouch *mt, const struct input_event *ev); | 42 | int parse_event(struct MTouch *mt, const struct input_event *ev); |
| 42 | 43 | ||
| 43 | int mt_is_idle(struct MTouch *mt, int fd); | 44 | int has_delayed_gestures(struct MTouch *mt, int fd); |
| 44 | 45 | ||
| 45 | static inline void mt_delay_movement(struct MTouch *mt, int t) | 46 | static inline void mt_delay_movement(struct MTouch *mt, int t) |
| 46 | { | 47 | { |
