From dc7f42807f0dac18ba4d7d0ec86fc2d651feadc3 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 19 Aug 2010 20:39:11 +0200 Subject: Reserve one mask position for system use This is needed for gesture propagation outside of grail. Signed-off-by: Henrik Rydberg --- include/grail-types.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/grail-types.h b/include/grail-types.h index 474261d..de9197b 100644 --- a/include/grail-types.h +++ b/include/grail-types.h @@ -57,7 +57,14 @@ #define GRAIL_TYPE_MPINCH 24 /* four-finger meta drag */ #define GRAIL_TYPE_MROTATE 25 /* four-finger meta drag */ +#define GRAIL_TYPE_SYSFLAG1 26 /* reserved system flag */ + #define GRAIL_MAIN_DRAG 0 +#define GRAIL_MAIN_PINCH 1 +#define GRAIL_MAIN_ROTATE 2 +#define GRAIL_MAIN_TAP 3 +#define GRAIL_MAIN_SYSFLAG 4 + #define GRAIL_PROP_DRAG_DX 0 /* horizontal position delta */ #define GRAIL_PROP_DRAG_DY 1 /* vertical position delta */ #define GRAIL_PROP_DRAG_VX 2 /* horizontal velocity */ @@ -65,7 +72,6 @@ #define GRAIL_PROP_DRAG_X 4 /* horizontal position */ #define GRAIL_PROP_DRAG_Y 5 /* vertical position */ -#define GRAIL_MAIN_PINCH 1 #define GRAIL_PROP_PINCH_DR 0 /* radius delta */ #define GRAIL_PROP_PINCH_VR 1 /* radial velocity */ #define GRAIL_PROP_PINCH_R 2 /* radius */ @@ -74,7 +80,6 @@ #define GRAIL_PROP_PINCH_X2 5 /* bounding box x2 */ #define GRAIL_PROP_PINCH_Y2 6 /* bounding box y2 */ -#define GRAIL_MAIN_ROTATE 2 #define GRAIL_PROP_ROTATE_DA 0 /* angle delta */ #define GRAIL_PROP_ROTATE_VA 1 /* angular velocity */ #define GRAIL_PROP_ROTATE_A 2 /* angle */ @@ -83,7 +88,6 @@ #define GRAIL_PROP_ROTATE_X2 5 /* bounding box x2 */ #define GRAIL_PROP_ROTATE_Y2 6 /* bounding box y2 */ -#define GRAIL_MAIN_TAP 3 #define GRAIL_PROP_TAP_DT 0 /* tap time (ms) */ #define GRAIL_PROP_TAP_X 1 /* horizontal position */ #define GRAIL_PROP_TAP_Y 2 /* vertical position */ -- cgit v1.2.3