summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gestures.c3
-rw-r--r--src/memory.c12
-rw-r--r--src/memory.h1
3 files changed, 16 insertions, 0 deletions
diff --git a/src/gestures.c b/src/gestures.c
index 3502255..277e864 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -189,5 +189,8 @@ void extract_gestures(struct Gestures *gs, struct MTouch* mt)
189 extract_buttons(gs, mt); 189 extract_buttons(gs, mt);
190 extract_type(gs, mt); 190 extract_type(gs, mt);
191 mt->prev_state = mt->state; 191 mt->prev_state = mt->state;
192#if 0
193 output_memory(&mt->mem);
194#endif
192} 195}
193 196
diff --git a/src/memory.c b/src/memory.c
index b213694..15b483c 100644
--- a/src/memory.c
+++ b/src/memory.c
@@ -25,3 +25,15 @@ void init_memory(struct Memory *mem)
25{ 25{
26 memset(mem, 0, sizeof(struct Memory)); 26 memset(mem, 0, sizeof(struct Memory));
27} 27}
28
29void output_memory(const struct Memory *m)
30{
31 int i;
32 xf86Msg(X_INFO, "btdata: %04x\n", m->btdata);
33 xf86Msg(X_INFO, "pointing: %04x\n", m->pointing);
34 xf86Msg(X_INFO, "moving: %04x\n", m->moving);
35 xf86Msg(X_INFO, "npoint: %d\n", m->npoint);
36 xf86Msg(X_INFO, "ybar: %d\n", m->ybar);
37 xf86Msg(X_INFO, "move_time: %lld\n", m->move_time);
38 xf86Msg(X_INFO, "nmove: %d\n", m->nmove);
39}
diff --git a/src/memory.h b/src/memory.h
index 5e8a31c..81cdae0 100644
--- a/src/memory.h
+++ b/src/memory.h
@@ -35,5 +35,6 @@ struct Memory {
35}; 35};
36 36
37void init_memory(struct Memory *mem); 37void init_memory(struct Memory *mem);
38void output_memory(const struct Memory *m);
38 39
39#endif 40#endif