aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtouch.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-16 18:48:53 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-06-16 18:54:52 +0200
commit21a363a2486a713434e890fc1f6b86a180755230 (patch)
treeca788ccf7c8269c5cbd41350463fa478aa499903 /include/mtouch.h
parent523d193b089111849873d9de0ec1bf29f4176fbc (diff)
downloadxorg-input-kobomultitouch-21a363a2486a713434e890fc1f6b86a180755230.tar.gz
xorg-input-kobomultitouch-21a363a2486a713434e890fc1f6b86a180755230.tar.bz2
xorg-input-kobomultitouch-21a363a2486a713434e890fc1f6b86a180755230.zip
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.h2
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);
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);