Hi,

On 07-12-15 05:23, Peter Hutterer wrote:
Signed-off-by: Peter Hutterer <[email protected]>

All patches in this set look good and are:

Reviewed-by: Hans de Goede <[email protected]>

Regards,

Hans


---
  tools/event-debug.c | 12 +++++++++---
  1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tools/event-debug.c b/tools/event-debug.c
index c603296..23e6cf9 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -270,17 +270,23 @@ print_axis_event(struct libinput_event *ev)
  {
        struct libinput_event_pointer *p = libinput_event_get_pointer_event(ev);
        double v = 0, h = 0;
+       const char *have_vert = "",
+                  *have_horiz = "";

        if (libinput_event_pointer_has_axis(p,
-                                   LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL))
+                               LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL)) {
                v = libinput_event_pointer_get_axis_value(p,
                              LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL);
+               have_vert = "*";
+       }
        if (libinput_event_pointer_has_axis(p,
-                                   LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL))
+                               LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL)) {
                h = libinput_event_pointer_get_axis_value(p,
                              LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL);
+               have_horiz = "*";
+       }
        print_event_time(libinput_event_pointer_get_time(p));
-       printf("vert %.2f horiz %.2f\n", v, h);
+       printf("vert %.2f%s horiz %.2f%s\n", v, have_vert, h, have_horiz);
  }

  static void

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to