diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-06-16 18:48:53 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-06-16 18:54:52 +0200 |
| commit | 21a363a2486a713434e890fc1f6b86a180755230 (patch) | |
| tree | ca788ccf7c8269c5cbd41350463fa478aa499903 /include/mtouch.h | |
| parent | 523d193b089111849873d9de0ec1bf29f4176fbc (diff) | |
Add tapping logic
This patch adds tap-to-click, tap-and-hold for dragging, two-finger
and three-finger taps. Turned on by default for touch screens only;
switch on in gestures.c.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/mtouch.h')
| -rw-r--r-- | include/mtouch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mtouch.h b/include/mtouch.h index 2b76652..c73eb29 100644 --- a/include/mtouch.h +++ b/include/mtouch.h | |||
| @@ -40,6 +40,8 @@ int close_mtouch(struct MTouch *mt, int fd); | |||
| 40 | 40 | ||
| 41 | int parse_event(struct MTouch *mt, const struct input_event *ev); | 41 | int parse_event(struct MTouch *mt, const struct input_event *ev); |
| 42 | 42 | ||
| 43 | int mt_is_idle(struct MTouch *mt, int fd); | ||
| 44 | |||
| 43 | static inline void mt_delay_movement(struct MTouch *mt, int t) | 45 | static inline void mt_delay_movement(struct MTouch *mt, int t) |
| 44 | { | 46 | { |
| 45 | mem_hold_movement(&mt->mem, mt->state.evtime + t); | 47 | mem_hold_movement(&mt->mem, mt->state.evtime + t); |
