aboutsummaryrefslogtreecommitdiffstats
path: root/src/hwdata.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
commit2f23f280d5bff3d5aa3f6115ecc05fa73b1cc2bb (patch)
tree3b6c98868b0d663c24ebfd6706922a6e99c23404 /src/hwdata.h
parenta2ef8bcda6cd3864b4c367579defb52ecad19657 (diff)
downloadxorg-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/hwdata.h')
-rw-r--r--src/hwdata.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hwdata.h b/src/hwdata.h
index 867a295..42d0a19 100644
--- a/src/hwdata.h
+++ b/src/hwdata.h
@@ -24,7 +24,7 @@
#include "common.h"
-#define DIM_BUTTON 13
+#define DIM_BUTTON 15
#define MT_BUTTON_LEFT 0
#define MT_BUTTON_MIDDLE 1
@@ -39,6 +39,8 @@
#define MT_BUTTON_SWIPE_RIGHT 10
#define MT_BUTTON_SCALE_DOWN 11
#define MT_BUTTON_SCALE_UP 12
+#define MT_BUTTON_ROTATE_LEFT 13
+#define MT_BUTTON_ROTATE_RIGHT 14
#define BIT_MT_TOUCH_MAJOR 0
#define BIT_MT_TOUCH_MINOR 1