mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 06:00:11 +01:00
tools: don't drop the accelerated deltas in ptraccel-debug
Leftover from the initial (out-of-tree) implementation where we updated motion in place. That hasn't been true since libinput switched to type-safe coordinates. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
7ebb718ee9
commit
c902b37a8d
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ print_ptraccel_movement(struct motion_filter *filter,
|
|||
motion.y = 0;
|
||||
time += 12; /* pretend 80Hz data */
|
||||
|
||||
filter_dispatch(filter, &motion, NULL, time);
|
||||
motion = filter_dispatch(filter, &motion, NULL, time);
|
||||
|
||||
printf("%d %.3f %.3f\n", i, motion.x, dx);
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ print_ptraccel_sequence(struct motion_filter *filter,
|
|||
motion.y = 0;
|
||||
time += 12; /* pretend 80Hz data */
|
||||
|
||||
filter_dispatch(filter, &motion, NULL, time);
|
||||
motion = filter_dispatch(filter, &motion, NULL, time);
|
||||
|
||||
printf("%d %.3f %.3f\n", i, motion.x, *dx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue