On Mon, Apr 21, 2014 at 07:11:14PM +0200, Carlos Garnacho wrote: > This information has no coordinates itself, so only print out the event > time.
please squash this in with the patch that introduces it (01/24). Same applies for the other ones that just introduce new bits to print. Cheers, Peter > > Signed-off-by: Carlos Garnacho <[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 c0a08a7..3a72bfa 100644 > --- a/tools/event-debug.c > +++ b/tools/event-debug.c > @@ -199,6 +199,9 @@ print_event_header(struct libinput_event *ev) > case LIBINPUT_EVENT_POINTER_AXIS: > type = "POINTER_AXIS"; > break; > + case LIBINPUT_EVENT_POINTER_AXIS_FRAME: > + type = "POINTER_AXIS_FRAME"; > + break; > case LIBINPUT_EVENT_TOUCH_DOWN: > type = "TOUCH_DOWN"; > break; > @@ -318,6 +321,15 @@ print_axis_event(struct libinput_event *ev) > } > > static void > +print_axis_frame_event(struct libinput_event *ev) > +{ > + struct libinput_event_pointer *p = libinput_event_get_pointer_event(ev); > + > + print_event_time(libinput_event_pointer_get_time(p)); > + printf("\n"); > +} > + > +static void > print_touch_event_without_coords(struct libinput_event *ev) > { > struct libinput_event_touch *t = libinput_event_get_touch_event(ev); > @@ -374,6 +386,9 @@ handle_and_print_events(struct libinput *li) > case LIBINPUT_EVENT_POINTER_AXIS: > print_axis_event(ev); > break; > + case LIBINPUT_EVENT_POINTER_AXIS_FRAME: > + print_axis_frame_event(ev); > + break; > case LIBINPUT_EVENT_TOUCH_DOWN: > print_touch_event_with_coords(ev); > break; > -- > 1.9.0 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
