diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2010-05-13 23:21:37 +0200 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2010-05-14 01:41:39 +0200 |
commit | 2f23f280d5bff3d5aa3f6115ecc05fa73b1cc2bb (patch) | |
tree | 3b6c98868b0d663c24ebfd6706922a6e99c23404 /src/gestures.h | |
parent | a2ef8bcda6cd3864b4c367579defb52ecad19657 (diff) | |
download | xorg-input-kobomultitouch-2f23f280d5bff3d5aa3f6115ecc05fa73b1cc2bb.tar.gz xorg-input-kobomultitouch-2f23f280d5bff3d5aa3f6115ecc05fa73b1cc2bb.tar.bz2 xorg-input-kobomultitouch-2f23f280d5bff3d5aa3f6115ecc05fa73b1cc2bb.zip |
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 <rydberg@euromail.se>
Diffstat (limited to 'src/gestures.h')
-rw-r--r-- | src/gestures.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |