aboutsummaryrefslogtreecommitdiffstats
path: root/src/gestures.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-05-13 23:21:37 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-05-14 01:41:39 +0200
commita2ef8bcda6cd3864b4c367579defb52ecad19657 (patch)
tree902391874bd1982f99854c33728abdee77913004 /src/gestures.h
parent32dea71a85ac1b46c35bf85f456f3c4772b30e76 (diff)
downloadxorg-input-kobomultitouch-a2ef8bcda6cd3864b4c367579defb52ecad19657.tar.gz
xorg-input-kobomultitouch-a2ef8bcda6cd3864b4c367579defb52ecad19657.tar.bz2
xorg-input-kobomultitouch-a2ef8bcda6cd3864b4c367579defb52ecad19657.zip
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 <rydberg@euromail.se>
Diffstat (limited to 'src/gestures.h')
-rw-r--r--src/gestures.h3
1 files changed, 2 insertions, 1 deletions
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);