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 /src/test.c | |
| 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 'src/test.c')
| -rw-r--r-- | src/test.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -42,6 +42,10 @@ static void loop_device(int fd) | |||
| 42 | extract_gestures(&gs, &mt); | 42 | extract_gestures(&gs, &mt); |
| 43 | output_gesture(&gs); | 43 | output_gesture(&gs); |
| 44 | } | 44 | } |
| 45 | if (mt_is_idle(&mt, fd)) { | ||
| 46 | extract_delayed_gestures(&gs, &mt); | ||
| 47 | output_gesture(&gs); | ||
| 48 | } | ||
| 45 | } | 49 | } |
| 46 | close_mtouch(&mt, fd); | 50 | close_mtouch(&mt, fd); |
| 47 | } | 51 | } |
