mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-27 05:20:24 +01:00
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:
parent
0d757a94f9
commit
f8aa49b619
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue