mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 02:20:30 +01:00
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:
parent
7d4e152aea
commit
95fca82977
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue