~chasedouglas/grail/original-touch-state

« back to all changes in this revision

Viewing changes to src/gestures-tapping.c

  • Committer: Henrik Rydberg
  • Date: 2011-01-02 12:08:08 UTC
  • Revision ID: rydberg@bitmath.org-20110102120808-0nzbo3fcpp91sir5
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
static void set_props(const struct gesture_inserter *gin,
32
32
                      struct tapping_model *s, const struct move_model *m,
33
 
                      const struct touch_frame *frame)
 
33
                      const struct utouch_frame *frame)
34
34
{
35
35
        s->prop[GRAIL_PROP_TAP_DT] = m->time - s->start;
36
36
        s->prop[GRAIL_PROP_TAP_X] = gin_prop_x(gin, m->fm[FM_X].value);
40
40
}
41
41
 
42
42
int gru_tapping(struct grail *ge,
43
 
                const struct touch_frame *frame)
 
43
                const struct utouch_frame *frame)
44
44
{
45
45
        struct gesture_recognizer *gru = ge->gru;
46
46
        struct tapping_model *state = &gru->tapping;