summaryrefslogtreecommitdiff
path: root/driver/multitouch.c
diff options
context:
space:
mode:
authorDaniel Landau <daniel.landau@helsinki.fi>2011-03-12 20:07:20 +0200
committerHenrik Rydberg <rydberg@euromail.se>2011-03-25 14:34:43 +0100
commit4d87c041f6a232aa30528d70d4b9946d1824b4ed (patch)
treefdf78c5b5294e573000c987528343d8ec20c4524 /driver/multitouch.c
parentafbbc4b9470869933223e3970c7a63f1c52c1d69 (diff)
Four finger swipes in multitouch
I think four finger swipes are useful, attached is a very simple patch enabling that. Signed-off-by: Daniel Landau <daniel.landau@helsinki.fi> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'driver/multitouch.c')
-rw-r--r--driver/multitouch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/driver/multitouch.c b/driver/multitouch.c
index 99f1484..a083adc 100644
--- a/driver/multitouch.c
+++ b/driver/multitouch.c
@@ -261,6 +261,14 @@ static void handle_gestures(LocalDevicePtr local,
261 foreach_bit(i, gs->tapmask) 261 foreach_bit(i, gs->tapmask)
262 tickle_button(local, i + 1); 262 tickle_button(local, i + 1);
263 } 263 }
264 if (GETBIT(gs->type, GS_VSWIPE4)) {
265 int step = 1 + vswipe_fraction * get_cap_ysize(caps);
266 button_scroll(local, 16, 17, &vswipe, step, gs->dy);
267 }
268 if (GETBIT(gs->type, GS_HSWIPE4)) {
269 int step = 1 + hswipe_fraction * get_cap_xsize(caps);
270 button_scroll(local, 18, 19, &hswipe, step, gs->dx);
271 }
264} 272}
265 273
266/* called for each full received packet from the touchpad */ 274/* called for each full received packet from the touchpad */