mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 19:18:03 +02:00
test: debug print the events we're draining
This commit is contained in:
parent
cf1c07e066
commit
c5f808ac2e
1 changed files with 5 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ static struct list created_files_list; /* list of all files to remove at the end
|
||||||
|
|
||||||
static void litest_init_udev_rules(struct list *created_files_list);
|
static void litest_init_udev_rules(struct list *created_files_list);
|
||||||
static void litest_remove_udev_rules(struct list *created_files_list);
|
static void litest_remove_udev_rules(struct list *created_files_list);
|
||||||
|
static void litest_print_event(struct libinput_event *event);
|
||||||
|
|
||||||
enum quirks_setup_mode {
|
enum quirks_setup_mode {
|
||||||
QUIRKS_SETUP_USE_SRCDIR,
|
QUIRKS_SETUP_USE_SRCDIR,
|
||||||
|
|
@ -3060,6 +3061,10 @@ litest_drain_events(struct libinput *li)
|
||||||
|
|
||||||
libinput_dispatch(li);
|
libinput_dispatch(li);
|
||||||
while ((event = libinput_get_event(li))) {
|
while ((event = libinput_get_event(li))) {
|
||||||
|
if (verbose) {
|
||||||
|
fprintf(stderr, "litest: draining event: ");
|
||||||
|
litest_print_event(event);
|
||||||
|
}
|
||||||
libinput_event_destroy(event);
|
libinput_event_destroy(event);
|
||||||
libinput_dispatch(li);
|
libinput_dispatch(li);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue