diff options
author | Daniel Landau <daniel.landau@helsinki.fi> | 2011-03-12 20:07:20 +0200 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2011-03-25 14:34:43 +0100 |
commit | 4d87c041f6a232aa30528d70d4b9946d1824b4ed (patch) | |
tree | fdf78c5b5294e573000c987528343d8ec20c4524 /src | |
parent | afbbc4b9470869933223e3970c7a63f1c52c1d69 (diff) |
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 'src')
-rw-r--r-- | src/gestures.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gestures.c b/src/gestures.c index 735e77c..cc95e9b 100644 --- a/src/gestures.c +++ b/src/gestures.c @@ -157,12 +157,16 @@ static void extract_movement(struct Gestures *gs, struct MTouch* mt) SETBIT(gs->type, GS_HSCROLL); if (nmove == 3) SETBIT(gs->type, GS_HSWIPE); + if (nmove == 4) + SETBIT(gs->type, GS_HSWIPE4); } if (abs(gs->dy) > abs(gs->dx)) { if (nmove == 2) SETBIT(gs->type, GS_VSCROLL); if (nmove == 3) SETBIT(gs->type, GS_VSWIPE); + if (nmove == 4) + SETBIT(gs->type, GS_VSWIPE4); } } } |