Signed-off-by: Stephen Chandler Paul <[email protected]>
Reviewed-by: Peter Hutterer <[email protected]>
---
 tools/event-debug.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/tools/event-debug.c b/tools/event-debug.c
index 7ba1e64..90cdd64 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -221,6 +221,9 @@ print_event_header(struct libinput_event *ev)
        case LIBINPUT_EVENT_TABLET_TOOL_UPDATE:
                type = "TABLET_TOOL_UPDATE";
                break;
+       case LIBINPUT_EVENT_TABLET_PROXIMITY_OUT:
+               type = "TABLET_PROXIMITY_OUT";
+               break;
        }
 
        printf("%-7s    %s      ", libinput_device_get_sysname(dev), type);
@@ -319,6 +322,7 @@ print_pointer_axis_event(struct libinput_event *ev)
        val = libinput_event_pointer_get_axis_value(p);
        printf("%s %.2f\n", ax, val);
 }
+
 static void
 print_tablet_axis_event(struct libinput_event *ev)
 {
@@ -402,6 +406,14 @@ print_tool_update_event(struct libinput_event *ev)
 }
 
 static void
+print_proximity_out_event(struct libinput_event *ev) {
+       struct libinput_event_tablet *t = libinput_event_get_tablet_event(ev);
+
+       print_event_time(libinput_event_tablet_get_time(t));
+       printf("\n");
+}
+
+static void
 print_touch_event_with_coords(struct libinput_event *ev)
 {
        struct libinput_event_touch *t = libinput_event_get_touch_event(ev);
@@ -469,6 +481,9 @@ handle_and_print_events(struct libinput *li)
                case LIBINPUT_EVENT_TABLET_TOOL_UPDATE:
                        print_tool_update_event(ev);
                        break;
+               case LIBINPUT_EVENT_TABLET_PROXIMITY_OUT:
+                       print_proximity_out_event(ev);
+                       break;
                }
 
                libinput_event_destroy(ev);
-- 
1.8.5.5

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

Reply via email to