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/grail-gestures.h | |
| 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/grail-gestures.h')
| -rw-r--r-- | src/grail-gestures.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/grail-gestures.h b/src/grail-gestures.h index 27108e9..69dd7e4 100644 --- a/src/grail-gestures.h +++ b/src/grail-gestures.h | |||
| @@ -61,7 +61,7 @@ struct move_model { | |||
| 61 | 61 | ||
| 62 | void gru_init_motion(struct grail *ge); | 62 | void gru_init_motion(struct grail *ge); |
| 63 | void gru_motion(struct grail *ge, | 63 | void gru_motion(struct grail *ge, |
| 64 | const struct touch_frame *frame); | 64 | const struct utouch_frame *frame); |
| 65 | void gru_event(struct grail *ge, int gid, | 65 | void gru_event(struct grail *ge, int gid, |
| 66 | const struct move_model *move, | 66 | const struct move_model *move, |
| 67 | const grail_prop_t *prop, int nprop); | 67 | const grail_prop_t *prop, int nprop); |
| @@ -77,11 +77,11 @@ struct combo_model { | |||
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | int gru_drag(struct grail *ge, | 79 | int gru_drag(struct grail *ge, |
| 80 | const struct touch_frame *frame); | 80 | const struct utouch_frame *frame); |
| 81 | int gru_pinch(struct grail *ge, | 81 | int gru_pinch(struct grail *ge, |
| 82 | const struct touch_frame *frame); | 82 | const struct utouch_frame *frame); |
| 83 | int gru_rotate(struct grail *ge, | 83 | int gru_rotate(struct grail *ge, |
| 84 | const struct touch_frame *frame); | 84 | const struct utouch_frame *frame); |
| 85 | 85 | ||
| 86 | static inline int out_of_bounds(const struct combo_model *s, | 86 | static inline int out_of_bounds(const struct combo_model *s, |
| 87 | const struct move_model *m) | 87 | const struct move_model *m) |
| @@ -90,11 +90,11 @@ static inline int out_of_bounds(const struct combo_model *s, | |||
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | int gru_windrag(struct grail *ge, | 92 | int gru_windrag(struct grail *ge, |
| 93 | const struct touch_frame *frame); | 93 | const struct utouch_frame *frame); |
| 94 | int gru_winpinch(struct grail *ge, | 94 | int gru_winpinch(struct grail *ge, |
| 95 | const struct touch_frame *frame); | 95 | const struct utouch_frame *frame); |
| 96 | int gru_winrotate(struct grail *ge, | 96 | int gru_winrotate(struct grail *ge, |
| 97 | const struct touch_frame *frame); | 97 | const struct utouch_frame *frame); |
| 98 | 98 | ||
| 99 | struct tapping_model { | 99 | struct tapping_model { |
| 100 | grail_time_t start, end; | 100 | grail_time_t start, end; |
| @@ -105,7 +105,7 @@ struct tapping_model { | |||
| 105 | }; | 105 | }; |
| 106 | 106 | ||
| 107 | int gru_tapping(struct grail *ge, | 107 | int gru_tapping(struct grail *ge, |
| 108 | const struct touch_frame *frame); | 108 | const struct utouch_frame *frame); |
| 109 | 109 | ||
| 110 | #endif | 110 | #endif |
| 111 | 111 | ||
