tablet: move the axis transforms to the end

No functional changes, part of the grouping of tablet axis manipulation vs.
processing of that manipulated state.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Ping Cheng <pingc@wacom.com>
This commit is contained in:
Peter Hutterer 2017-03-07 13:20:32 +10:00
parent f8aa49b619
commit 1e113f6283

View file

@ -423,9 +423,6 @@ tablet_handle_xy(struct tablet_dispatch *tablet,
}
point.y = tablet->axes.point.y;
evdev_transform_absolute(device, &point);
evdev_transform_relative(device, &delta);
*delta_out = delta;
*point_out = point;
}
@ -619,6 +616,9 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet,
axes.wheel = tablet_handle_wheel(tablet, device, &axes.wheel_discrete);
evdev_transform_absolute(device, &axes.point);
evdev_transform_relative(device, &delta);
axes.delta = tool_process_delta(tool, device, &delta, time);
*axes_out = axes;