From 5635fe21d108c2e279dec3d29915f75412b04e19 Mon Sep 17 00:00:00 2001
From: Jason Gerecke <killertofu@gmail.com>
Date: Mon, 23 Dec 2013 18:34:42 -0800
Subject: [PATCH v2 6/7] DEBUG: Add axis update logging to evas-multi-touch.c

Just making sure that these events are actually getting through!
---
 src/examples/evas/evas-multi-touch.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/examples/evas/evas-multi-touch.c b/src/examples/evas/evas-multi-touch.c
index ac90363..1184681 100644
--- a/src/examples/evas/evas-multi-touch.c
+++ b/src/examples/evas/evas-multi-touch.c
@@ -202,6 +202,19 @@ _multi_up_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_
    _mouse_up_handle(ev->device, ev->cur.canvas.x, ev->cur.canvas.y);
 }
 
+static void
+_axis_update_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
+{
+   int i;
+   Evas_Event_Axis_Update *ev = event_info;
+
+   printf("Axis update on dev %d, %d axes...\n", ev->device, ev->naxis);
+   for (i = 0; i < ev->naxis; i++)
+     {
+        printf("   %d: %f\n", ev->axis[i].label, ev->axis[i].value);
+     }
+}
+
 int
 main(void)
 {
@@ -242,6 +255,8 @@ main(void)
    evas_object_event_callback_add(d.bg, EVAS_CALLBACK_MULTI_MOVE, _multi_move_cb, &d);
    evas_object_event_callback_add(d.bg, EVAS_CALLBACK_MOUSE_MOVE, _mouse_move_cb, &d);
 
+   evas_object_event_callback_add(d.bg, EVAS_CALLBACK_AXIS_UPDATE, _axis_update_cb, &d);
+
    evas_object_focus_set(d.bg, EINA_TRUE); /* so we get input events */
 
    ecore_main_loop_begin();
-- 
2.1.0

