tablet: move delta processing down

No functional changes, this is just to group the calls that modify tablet axis
state together and move the bits that rely on this state (but don't modify it)
to the bottom.

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:17:43 +10:00
parent 0d757a94f9
commit f8aa49b619

View file

@ -598,7 +598,6 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet,
axes.distance = tablet_handle_distance(tablet, device);
axes.slider = tablet_handle_slider(tablet, device);
axes.tilt = tablet_handle_tilt(tablet, device);
axes.delta = tool_process_delta(tool, device, &delta, time);
/* We must check ROTATION_Z after TILT_X/Y so that the tilt axes are
* already normalized and set if we have the mouse/lens tool */
@ -620,6 +619,8 @@ tablet_check_notify_axes(struct tablet_dispatch *tablet,
axes.wheel = tablet_handle_wheel(tablet, device, &axes.wheel_discrete);
axes.delta = tool_process_delta(tool, device, &delta, time);
*axes_out = axes;
rc = true;