From 21a363a2486a713434e890fc1f6b86a180755230 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 16 Jun 2010 18:48:53 +0200 Subject: 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 --- include/mtouch.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/mtouch.h') 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); int parse_event(struct MTouch *mt, const struct input_event *ev); +int mt_is_idle(struct MTouch *mt, int fd); + static inline void mt_delay_movement(struct MTouch *mt, int t) { mem_hold_movement(&mt->mem, mt->state.evtime + t); -- cgit v1.2.3