mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 04:40:05 +01:00
tools: Handle LIBINPUT_EVENT_TABLET_PROXIMITY_OUT in event-debug
Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
5fa892a88e
commit
e5f7ec9d53
1 changed files with 14 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
@ -402,6 +405,14 @@ print_tool_update_event(struct libinput_event *ev)
|
|||
printf("\n");
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
@ -470,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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue