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/memory.h | |
parent | 523d193b089111849873d9de0ec1bf29f4176fbc (diff) | |
download | xorg-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/memory.h')
-rw-r--r-- | include/memory.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/memory.h b/include/memory.h index 1a1b688..3054828 100644 --- a/include/memory.h +++ b/include/memory.h @@ -40,6 +40,16 @@ * @mvforget: movement before this point in time is discarded * @dx: array of accumulated horiontal movement per finger * @dy: array of accumulated vertical movement per finger + * @tpdown: time of first touch + * @tpup: time of last release + * @tprelax: time of next possible touch + * @xdown: x position of first touch + * @ydown: y position of first touch + * @xup: x position of last release + * @yup: y position of last release + * @wait: time to wait for a second tap + * @maxtap: max number of pointing fingers during touch + * @ntap: number of taps in sequence * */ struct Memory { @@ -49,6 +59,9 @@ struct Memory { int ybar; mstime_t mvhold, mvforget; int dx[DIM_FINGER], dy[DIM_FINGER]; + mstime_t tpdown, tpup, tprelax; + int xdown, ydown, xup, yup; + int wait, maxtap, ntap; }; void init_memory(struct Memory *mem); |