From 2f23f280d5bff3d5aa3f6115ecc05fa73b1cc2bb Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 13 May 2010 23:21:37 +0200 Subject: Add rotation gesture Moving two fingers around a center point will trigger the gesture. This patch computes the rotation gesture and maps it to mouse buttons 14 and 15. Signed-off-by: Henrik Rydberg --- src/gestures.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gestures.h') diff --git a/src/gestures.h b/src/gestures.h index 5739d45..2866ba4 100644 --- a/src/gestures.h +++ b/src/gestures.h @@ -31,10 +31,11 @@ #define GS_VSWIPE 4 #define GS_HSWIPE 5 #define GS_SCALE 6 +#define GS_ROTATE 7 struct Gestures { unsigned type, btmask, btdata; - int same_fingers, dx, dy, scale; + int same_fingers, dx, dy, scale, rot; }; void extract_gestures(struct Gestures *gs, struct MTouch* mt); -- cgit v1.2.3