From da425afd6199995ac7b6f23bf8744a435cc02e23 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 10 Aug 2010 12:45:52 +0100 Subject: Add property declarations to grail-types Also add accumulated values for delta and velocity properties. Signed-off-by: Henrik Rydberg --- src/grail-gestures.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/grail-gestures.h') diff --git a/src/grail-gestures.h b/src/grail-gestures.h index 6846ed0..658b548 100644 --- a/src/grail-gestures.h +++ b/src/grail-gestures.h @@ -39,10 +39,13 @@ struct filter_model { float raw_delta; float action_delta; + float velocity; float value; float original; float fuzz; float bar; + float sample; + grail_time_t sample_ms; }; struct move_model { @@ -58,9 +61,14 @@ void gru_motion(struct grail *ge, void gru_event(struct grail *ge, int gid, const struct move_model *move, const grail_prop_t *prop, int nprop); +void gru_end(struct grail *ge, int gid, + const struct move_model *move, + const grail_prop_t *prop, int nprop); struct combo_model { int active, gid; + int nprop; + grail_prop_t prop[DIM_GRAIL_PROP]; }; int gru_drag(struct grail *ge, -- cgit v1.2.3