summaryrefslogtreecommitdiff
path: root/src/wcmTouchFilter.h
diff options
context:
space:
mode:
authorAlexey Osipov <simba@lerlan.ru>2012-01-03 15:13:48 +0700
committerJason Gerecke <killertofu@gmail.com>2012-01-03 09:25:23 -0800
commit5ca665dd77b074d95fd0d9191f544b022eaaddd8 (patch)
tree77fbe442c71bdbfdb246943407ea8602dd273f73 /src/wcmTouchFilter.h
parent1c5c25d7b4a4ce0686f6a088d282e437dbadadfe (diff)
downloadxf86-input-wacom-5ca665dd77b074d95fd0d9191f544b022eaaddd8.tar.gz
'Left mouse button' dragging support.
First, we define two new GESTURE_ modes: - GESTURE_PREDRAG_MODE - when first tap happen and we wait for second touch. - GESTURE_DRAG_MODE - when actual drag happening (left button pressed). Second, we define tap timeout function wcmSingleFingerTapTimer(), which simulate single click if no drag operation started within timeout. Third, we make an exception for GESTURE_DRAG_MODE in wcmCommon.c, because we actually want cursor movements while dragging. This exception is made through new function wcmTouchNeedSendEvents(). Now, to do a single tap you just tap (touch and untouch). Actual click happens after TapTime period. To drag something you make a tap (touch and untouch) and then quickly (in TapTime period) touch device again. Then drag. Signed-off-by: Alexey Osipov <simba@lerlan.ru> Reviewed-by: Chris Bagwell <chris@cnpgabwell.com>
Diffstat (limited to 'src/wcmTouchFilter.h')
-rw-r--r--src/wcmTouchFilter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wcmTouchFilter.h b/src/wcmTouchFilter.h
index 38c73fb..331abde 100644
--- a/src/wcmTouchFilter.h
+++ b/src/wcmTouchFilter.h
@@ -1,5 +1,6 @@
/*
* Copyright 2009 - 2010 by Ping Cheng, Wacom. <pingc@wacom.com>
+ * Copyright 2011 by Alexey Osipov. <simba@lerlan.ru>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -24,6 +25,7 @@
/****************************************************************************/
void wcmGestureFilter(WacomDevicePtr priv, int channel);
+Bool wcmTouchNeedSendEvents(WacomCommonPtr common);
/****************************************************************************/
#endif /* __XF86_WCMTOUCHFILTER_H */