tools/debug-events: print pinch angle and rotation again

Fixes: 9907cf2eeb ("Move the event printing out into a utility")

Closes #1108

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1163>
This commit is contained in:
Peter Hutterer 2025-03-28 14:38:46 +10:00 committed by Marge Bot
parent 7d4e152aea
commit 95fca82977

View file

@ -732,10 +732,11 @@ print_gesture_event_with_coords(struct libinput_event *ev, const struct libinput
pinch = strdup_printf(" %5.2f @ %5.2f", scale, angle);
}
char *str = strdup_printf("%s\t%d %5.2f/%5.2f (%5.2f/%5.2f unaccelerated)",
char *str = strdup_printf("%s\t%d %5.2f/%5.2f (%5.2f/%5.2f unaccelerated)%s",
time,
libinput_event_gesture_get_finger_count(t),
dx, dy, dx_unaccel, dy_unaccel);
dx, dy, dx_unaccel, dy_unaccel,
pinch ? pinch : "");
free(pinch);
return str;
}