~oif-team/geis/utouch-geis-674682

« back to all changes in this revision

Viewing changes to include/geis/geis.h

  • Committer: Stephen M. Webb
  • Date: 2010-12-07 12:08:17 UTC
  • Revision ID: stephen.webb@canonical.com-20101207120817-pkqe30tw3cd4s0xt
Added support for "flick" gesture recognition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include <geis/geisimpl.h>
31
31
 
32
 
/* Standard fundamental gestures */
 
32
/**
 
33
 * @defgroup geis1_gesture_names Gesture Names (GEIS v1.0)
 
34
 *
 
35
 * @{
 
36
 */
 
37
 
 
38
/* Gesture Primitives */
33
39
#define GEIS_GESTURE_DRAG    "Drag"
34
40
#define GEIS_GESTURE_PINCH   "Pinch"
35
41
#define GEIS_GESTURE_ROTATE  "Rotate"
36
42
#define GEIS_GESTURE_TAP     "Tap"
37
 
 
38
 
/* Gesture names for the Simplified Interface */
 
43
#define GEIS_GESTURE_FLICK   "Flick"
 
44
 
 
45
#define GEIS_GESTURE_PRIMITIVE_DRAG    0
 
46
#define GEIS_GESTURE_PRIMITIVE_PINCH   1
 
47
#define GEIS_GESTURE_PRIMITIVE_ROTATE  2
 
48
#define GEIS_GESTURE_PRIMITIVE_TAP    15
 
49
 
 
50
/*
 
51
 * Gesture names for subscriptions
 
52
 *
 
53
 * These are not part of the GEIS v1.0 specification but are provided for
 
54
 * convenience.
 
55
 */
39
56
#define GEIS_GESTURE_TYPE_DRAG1   "Drag,touch=1"
40
57
#define GEIS_GESTURE_TYPE_DRAG2   "Drag,touch=2"
41
58
#define GEIS_GESTURE_TYPE_DRAG3   "Drag,touch=3"
57
74
#define GEIS_GESTURE_TYPE_TAP4    "Tap,touch=4"
58
75
#define GEIS_GESTURE_TYPE_TAP5    "Tap,touch=5"
59
76
 
 
77
#define GEIS_GESTURE_TYPE_NAME_FLICK1  "Flick,touch=1"
 
78
#define GEIS_GESTURE_TYPE_NAME_FLICK2  "Flick,touch=2"
 
79
#define GEIS_GESTURE_TYPE_NAME_FLICK3  "Flick,touch=3"
 
80
#define GEIS_GESTURE_TYPE_NAME_FLICK4  "Flick,touch=4"
 
81
#define GEIS_GESTURE_TYPE_NAME_FLICK5  "Flick,touch=5"
 
82
#define GEIS_GESTURE_TYPE_NAME_DTAP1   "DTap,touch=1"
 
83
#define GEIS_GESTURE_TYPE_NAME_DTAP2   "DTap,touch=2"
 
84
#define GEIS_GESTURE_TYPE_NAME_DTAP3   "DTap,touch=3"
 
85
#define GEIS_GESTURE_TYPE_NAME_DTAP4   "DTap,touch=4"
 
86
#define GEIS_GESTURE_TYPE_NAME_DTAP5   "DTap,touch=5"
 
87
 
60
88
/* Standard fundamental gesture attributes */
61
89
#define GEIS_GESTURE_ATTRIBUTE_ANGLE            "angle"
62
90
#define GEIS_GESTURE_ATTRIBUTE_ANGLE_DELTA      "angle delta"
100
128
#define GEIS_GESTURE_ATTRIBUTE_TOUCH_4_X        "touch 4 x"
101
129
#define GEIS_GESTURE_ATTRIBUTE_TOUCH_4_Y        "touch 4 y"
102
130
 
 
131
/* @} */
103
132
 
104
133
#define GEIS_FALSE 0
105
134
#define GEIS_TRUE  1