From a0a4c6c30704a792193ff49d7fcaab63dac8a07a Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Mon, 28 Mar 2011 20:55:29 +0200 Subject: Introduce touch gesture events Touch gesture events follow the same logic as drags, except they cannot be held back but are emitted immediately. Signed-off-by: Henrik Rydberg --- src/grail-gestures.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/grail-gestures.h') diff --git a/src/grail-gestures.h b/src/grail-gestures.h index d92a24b..a24bbbd 100644 --- a/src/grail-gestures.h +++ b/src/grail-gestures.h @@ -77,6 +77,8 @@ struct combo_model { grail_prop_t prop[DIM_GRAIL_PROP]; }; +int gru_touch(struct grail *ge, + const struct utouch_frame *frame); int gru_drag(struct grail *ge, const struct utouch_frame *frame); int gru_pinch(struct grail *ge, @@ -90,6 +92,8 @@ static inline int out_of_bounds(const struct combo_model *s, return m->ntouch < s->mintouch || m->ntouch > s->maxtouch; } +int gru_wintouch(struct grail *ge, + const struct utouch_frame *frame); int gru_windrag(struct grail *ge, const struct utouch_frame *frame); int gru_winpinch(struct grail *ge, -- cgit v1.2.3