summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-08-11 15:30:42 +0100
committerHenrik Rydberg <rydberg@euromail.se>2010-08-11 17:59:29 +0100
commit477f338c8de5e20d82e7c861bba742bc4c203a42 (patch)
treebb5c35fb7acc742f06e5f03bb4702e3e3cfa6e45 /include
parent7ce1ea3d30d2827310b04ef316c242b7dbf7f9dd (diff)
Add environment and meta gestures
With meta gestures, the gesture starts given a certain number of fingers, but can then continue even if the number of fingers change. By configuration, such gestures live on a different priority plane from normal gestures. To match window manager specs, this patch adds the environment and meta planes, and add drag, pinch and rotate gestures initiated with three and four fingers, respectively. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
-rw-r--r--include/grail-types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grail-types.h b/include/grail-types.h
index 83a653c..10c1fa1 100644
--- a/include/grail-types.h
+++ b/include/grail-types.h
@@ -49,6 +49,14 @@
49#define GRAIL_TYPE_TAP4 18 /* four-finger single tap */ 49#define GRAIL_TYPE_TAP4 18 /* four-finger single tap */
50#define GRAIL_TYPE_TAP5 19 /* five-finger single tap */ 50#define GRAIL_TYPE_TAP5 19 /* five-finger single tap */
51 51
52#define GRAIL_TYPE_EDRAG 20 /* three-finger environment drag */
53#define GRAIL_TYPE_EPINCH 21 /* three-finger environment drag */
54#define GRAIL_TYPE_EROTATE 22 /* three-finger environment drag */
55
56#define GRAIL_TYPE_MDRAG 23 /* four-finger meta drag */
57#define GRAIL_TYPE_MPINCH 24 /* four-finger meta drag */
58#define GRAIL_TYPE_MROTATE 25 /* four-finger meta drag */
59
52#define GRAIL_PROP_DRAG_DX 0 /* horizontal position delta */ 60#define GRAIL_PROP_DRAG_DX 0 /* horizontal position delta */
53#define GRAIL_PROP_DRAG_DY 1 /* vertical position delta */ 61#define GRAIL_PROP_DRAG_DY 1 /* vertical position delta */
54#define GRAIL_PROP_DRAG_VX 2 /* horizontal velocity */ 62#define GRAIL_PROP_DRAG_VX 2 /* horizontal velocity */