~chasedouglas/grail/original-touch-state

« back to all changes in this revision

Viewing changes to src/gestures-drag.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:
35
35
 
36
36
static void set_props(const struct gesture_inserter *gin,
37
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
40
        if (m->single) {
41
41
                s->prop[GRAIL_PROP_DRAG_DX] =
59
59
static const int fm_mask = 0x03;
60
60
 
61
61
int gru_drag(struct grail *ge,
62
 
            const struct touch_frame *frame)
 
62
            const struct utouch_frame *frame)
63
63
{
64
64
        struct gesture_recognizer *gru = ge->gru;
65
65
        struct combo_model *state = &gru->drag;
89
89
}
90
90
 
91
91
int gru_windrag(struct grail *ge,
92
 
                const struct touch_frame *frame)
 
92
                const struct utouch_frame *frame)
93
93
{
94
94
        struct gesture_recognizer *gru = ge->gru;
95
95
        struct combo_model *state = &gru->windrag;