mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-25 19:02:45 -06:00
Merge pull request #10055 from v1993/patch-1
input_common: minor fix to mouse movement
This commit is contained in:
commit
07694609fb
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ void Mouse::Move(int x, int y, int center_x, int center_y) {
|
||||||
|
|
||||||
auto mouse_change =
|
auto mouse_change =
|
||||||
(Common::MakeVec(x, y) - Common::MakeVec(center_x, center_y)).Cast<float>();
|
(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();
|
const auto move_distance = mouse_change.Length();
|
||||||
if (move_distance == 0) {
|
if (move_distance == 0) {
|
||||||
|
|
Loading…
Reference in a new issue