summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/grail-types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grail-types.h b/include/grail-types.h
index 10c1fa1..27450fe 100644
--- a/include/grail-types.h
+++ b/include/grail-types.h
@@ -57,6 +57,7 @@
57#define GRAIL_TYPE_MPINCH 24 /* four-finger meta drag */ 57#define GRAIL_TYPE_MPINCH 24 /* four-finger meta drag */
58#define GRAIL_TYPE_MROTATE 25 /* four-finger meta drag */ 58#define GRAIL_TYPE_MROTATE 25 /* four-finger meta drag */
59 59
60#define GRAIL_MAIN_DRAG 0
60#define GRAIL_PROP_DRAG_DX 0 /* horizontal position delta */ 61#define GRAIL_PROP_DRAG_DX 0 /* horizontal position delta */
61#define GRAIL_PROP_DRAG_DY 1 /* vertical position delta */ 62#define GRAIL_PROP_DRAG_DY 1 /* vertical position delta */
62#define GRAIL_PROP_DRAG_VX 2 /* horizontal velocity */ 63#define GRAIL_PROP_DRAG_VX 2 /* horizontal velocity */
@@ -64,6 +65,7 @@
64#define GRAIL_PROP_DRAG_X 4 /* horizontal position */ 65#define GRAIL_PROP_DRAG_X 4 /* horizontal position */
65#define GRAIL_PROP_DRAG_Y 5 /* vertical position */ 66#define GRAIL_PROP_DRAG_Y 5 /* vertical position */
66 67
68#define GRAIL_MAIN_PINCH 1
67#define GRAIL_PROP_PINCH_DR 0 /* radius delta */ 69#define GRAIL_PROP_PINCH_DR 0 /* radius delta */
68#define GRAIL_PROP_PINCH_VR 1 /* radial velocity */ 70#define GRAIL_PROP_PINCH_VR 1 /* radial velocity */
69#define GRAIL_PROP_PINCH_R 2 /* radius */ 71#define GRAIL_PROP_PINCH_R 2 /* radius */
@@ -72,10 +74,12 @@
72#define GRAIL_PROP_PINCH_X2 5 /* bounding box x2 */ 74#define GRAIL_PROP_PINCH_X2 5 /* bounding box x2 */
73#define GRAIL_PROP_PINCH_Y2 6 /* bounding box y2 */ 75#define GRAIL_PROP_PINCH_Y2 6 /* bounding box y2 */
74 76
77#define GRAIL_MAIN_ROTATE 2
75#define GRAIL_PROP_ROTATE_DA 0 /* angle delta */ 78#define GRAIL_PROP_ROTATE_DA 0 /* angle delta */
76#define GRAIL_PROP_ROTATE_VA 1 /* angular velocity */ 79#define GRAIL_PROP_ROTATE_VA 1 /* angular velocity */
77#define GRAIL_PROP_ROTATE_A 2 /* angle */ 80#define GRAIL_PROP_ROTATE_A 2 /* angle */
78 81
82#define GRAIL_MAIN_TAP 3
79#define GRAIL_PROP_TAP_DT 0 /* tap time (ms) */ 83#define GRAIL_PROP_TAP_DT 0 /* tap time (ms) */
80#define GRAIL_PROP_TAP_X 1 /* horizontal position */ 84#define GRAIL_PROP_TAP_X 1 /* horizontal position */
81#define GRAIL_PROP_TAP_Y 2 /* vertical position */ 85#define GRAIL_PROP_TAP_Y 2 /* vertical position */