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/hwdata.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/hwdata.h') 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 -- cgit v1.2.3