mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-05 20:40:15 +01:00
evdev: add a event-debugging log statement (ifdef'd out)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
586ac7c430
commit
6f1c8cda85
1 changed files with 13 additions and 0 deletions
13
src/evdev.c
13
src/evdev.c
|
|
@ -1137,6 +1137,19 @@ evdev_process_event(struct evdev_device *device, struct input_event *e)
|
|||
struct evdev_dispatch *dispatch = device->dispatch;
|
||||
uint64_t time = e->time.tv_sec * 1000ULL + e->time.tv_usec / 1000;
|
||||
|
||||
#if 0
|
||||
if (libevdev_event_is_code(e, EV_SYN, SYN_REPORT))
|
||||
log_debug(device->base.seat->libinput,
|
||||
"-------------- EV_SYN ------------\n");
|
||||
else
|
||||
log_debug(device->base.seat->libinput,
|
||||
"%-7s %-16s %-20s %4d\n",
|
||||
evdev_device_get_sysname(device),
|
||||
libevdev_event_type_get_name(e->type),
|
||||
libevdev_event_code_get_name(e->type, e->code),
|
||||
e->value);
|
||||
#endif
|
||||
|
||||
dispatch->interface->process(dispatch, device, e, time);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue