aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/drivers/mouse.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-04-14 17:05:45 -0600
committerGitHub <noreply@github.com>2023-04-14 17:05:45 -0600
commitdd582cc20682ac2792aaa1bafe6b987fe43b52b1 (patch)
treeee51e3200e7467b2c52d55d1a267e45b485f7ffa /src/input_common/drivers/mouse.cpp
parent84efa203a7ff2fc9125890cccad27f927088303e (diff)
parentd359ae51a3980c271c91b707504677a8b845edad (diff)
Merge pull request #10055 from v1993/patch-1
input_common: minor fix to mouse movement
Diffstat (limited to 'src/input_common/drivers/mouse.cpp')
-rw-r--r--src/input_common/drivers/mouse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/drivers/mouse.cpp b/src/input_common/drivers/mouse.cpp
index 4fb2a6cfa9..0c9f642bb5 100644
--- a/src/input_common/drivers/mouse.cpp
+++ b/src/input_common/drivers/mouse.cpp
@@ -135,7 +135,7 @@ void Mouse::Move(int x, int y, int center_x, int center_y) {
auto mouse_change =
(Common::MakeVec(x, y) - Common::MakeVec(center_x, center_y)).Cast<float>();
- last_motion_change += {-mouse_change.y, -mouse_change.x, last_motion_change.z};
+ last_motion_change += {-mouse_change.y, -mouse_change.x, 0};
const auto move_distance = mouse_change.Length();
if (move_distance == 0) {