summaryrefslogtreecommitdiff
path: root/src/gestures.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gestures.c')
-rw-r--r--src/gestures.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gestures.c b/src/gestures.c
index 89dad1a..0b0ba1d 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -57,14 +57,8 @@ void extract_gestures(struct Gestures *gs, struct MTouch* mt)
57 if (nsf == 3) 57 if (nsf == 3)
58 mt->ns.button = BITMASK(MT_BUTTON_MIDDLE); 58 mt->ns.button = BITMASK(MT_BUTTON_MIDDLE);
59 } 59 }
60 for (i = 0; i < DIM_BUTTON; i++) { 60 gs->btmask = (mt->ns.button ^ mt->os.button) & BITONES(DIM_BUTTON);
61 if (GETBIT(mt->ns.button, i) != GETBIT(mt->os.button, i)) { 61 gs->btdata = mt->ns.button & BITONES(DIM_BUTTON);
62 SETBIT(gs->type, GS_BUTTON);
63 gs->btix[gs->nbt] = i + 1;
64 gs->btval[gs->nbt] = GETBIT(mt->ns.button, i);
65 gs->nbt++;
66 }
67 }
68 mt->os = mt->ns; 62 mt->os = mt->ns;
69} 63}
70 64