From a2ef8bcda6cd3864b4c367579defb52ecad19657 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 13 May 2010 23:21:37 +0200 Subject: Add scale gesture Moving two fingers apart or closer together will trigger the gesture. This patch computes the scaling gesture and maps it to mouse buttons 12 and 13. 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 5630d4c..5739d45 100644 --- a/src/gestures.h +++ b/src/gestures.h @@ -30,10 +30,11 @@ #define GS_HSCROLL 3 #define GS_VSWIPE 4 #define GS_HSWIPE 5 +#define GS_SCALE 6 struct Gestures { unsigned type, btmask, btdata; - int same_fingers, dx, dy; + int same_fingers, dx, dy, scale; }; void extract_gestures(struct Gestures *gs, struct MTouch* mt); -- cgit v1.2.3