summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-24 01:22:10 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-24 01:22:10 +0100
commite2f85b4f7a18398ccb922ff239bbcdac94e72364 (patch)
tree10b074bd1ea86b7085e7968a835ca84cd176f53d /platform/linuxbsd
parentc3370023b6ffd29069a91ca8c3c2e4a3cacc2d76 (diff)
parent9aa99c0a9dffbcf55420660b3d0a29f64fc3a825 (diff)
downloadredot-engine-e2f85b4f7a18398ccb922ff239bbcdac94e72364.tar.gz
Merge pull request #89707 from AThousandShips/typo_fix
[Wayland] Fix typo in input code
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r--platform/linuxbsd/wayland/wayland_thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp
index 5040f5dd45..4057587db7 100644
--- a/platform/linuxbsd/wayland/wayland_thread.cpp
+++ b/platform/linuxbsd/wayland/wayland_thread.cpp
@@ -2454,7 +2454,7 @@ void WaylandThread::_wp_tablet_tool_on_frame(void *data, struct zwp_tablet_tool_
mm->set_relative_screen_position(mm->get_relative());
Vector2i pos_delta = td.position - old_td.position;
- uint32_t time_delta = td.motion_time - td.motion_time;
+ uint32_t time_delta = td.motion_time - old_td.motion_time;
mm->set_velocity((Vector2)pos_delta / time_delta);
Ref<InputEventMessage> inputev_msg;