diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-01-02 11:00:52 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-01-02 12:39:07 +0100 |
| commit | c0666a895e7fe8e488332263fd106ced0ed7cab7 (patch) | |
| tree | fca88fbee4aaed6e1eed050a749ce6246a7f1966 /src/gestures-drag.c | |
| parent | 1e07054fbeab6e90f104c279d3246097dd838a17 (diff) | |
Replace touch logic with utouch frame engine
The original grail uses an internal touch framework and exports some
touch information as extended attributes to gesture events. This was
never quite the intention, but rather to expose gestures and touches
on a similar footing, such that grail can be input agnostic. This
patch starts off by replacing the internal touch framework with the
utouch-frame engine.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/gestures-drag.c')
| -rw-r--r-- | src/gestures-drag.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gestures-drag.c b/src/gestures-drag.c index 2ced765..05272da 100644 --- a/src/gestures-drag.c +++ b/src/gestures-drag.c | |||
| @@ -35,7 +35,7 @@ static const int getype[DIM_TOUCH + 1] = { | |||
| 35 | 35 | ||
| 36 | static void set_props(const struct gesture_inserter *gin, | 36 | static void set_props(const struct gesture_inserter *gin, |
| 37 | struct combo_model *s, const struct move_model *m, | 37 | struct combo_model *s, const struct move_model *m, |
| 38 | const struct touch_frame *frame) | 38 | const struct utouch_frame *frame) |
| 39 | { | 39 | { |
| 40 | if (m->single) { | 40 | if (m->single) { |
| 41 | s->prop[GRAIL_PROP_DRAG_DX] = | 41 | s->prop[GRAIL_PROP_DRAG_DX] = |
| @@ -59,7 +59,7 @@ static void set_props(const struct gesture_inserter *gin, | |||
| 59 | static const int fm_mask = 0x03; | 59 | static const int fm_mask = 0x03; |
| 60 | 60 | ||
| 61 | int gru_drag(struct grail *ge, | 61 | int gru_drag(struct grail *ge, |
| 62 | const struct touch_frame *frame) | 62 | const struct utouch_frame *frame) |
| 63 | { | 63 | { |
| 64 | struct gesture_recognizer *gru = ge->gru; | 64 | struct gesture_recognizer *gru = ge->gru; |
| 65 | struct combo_model *state = &gru->drag; | 65 | struct combo_model *state = &gru->drag; |
| @@ -89,7 +89,7 @@ int gru_drag(struct grail *ge, | |||
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | int gru_windrag(struct grail *ge, | 91 | int gru_windrag(struct grail *ge, |
| 92 | const struct touch_frame *frame) | 92 | const struct utouch_frame *frame) |
| 93 | { | 93 | { |
| 94 | struct gesture_recognizer *gru = ge->gru; | 94 | struct gesture_recognizer *gru = ge->gru; |
| 95 | struct combo_model *state = &gru->windrag; | 95 | struct combo_model *state = &gru->windrag; |
