summaryrefslogtreecommitdiff
path: root/src/input_common/drivers/mouse.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-03-12 21:59:46 -0400
committerGravatar GitHub2023-03-12 21:59:46 -0400
commit54c359d1e3915653ce07a26e0e574aca5a331cb1 (patch)
tree75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/input_common/drivers/mouse.cpp
parentMerge pull request #9913 from ameerj/acc-dma-refactor (diff)
parentgeneral: fix spelling mistakes (diff)
downloadyuzu-54c359d1e3915653ce07a26e0e574aca5a331cb1.tar.gz
yuzu-54c359d1e3915653ce07a26e0e574aca5a331cb1.tar.xz
yuzu-54c359d1e3915653ce07a26e0e574aca5a331cb1.zip
Merge pull request #9942 from liamwhite/speling
general: use codespell to identify spelling mistakes
Diffstat (limited to 'src/input_common/drivers/mouse.cpp')
-rw-r--r--src/input_common/drivers/mouse.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/drivers/mouse.cpp b/src/input_common/drivers/mouse.cpp
index 94e92c37d..4fb2a6cfa 100644
--- a/src/input_common/drivers/mouse.cpp
+++ b/src/input_common/drivers/mouse.cpp
@@ -142,7 +142,7 @@ void Mouse::Move(int x, int y, int center_x, int center_y) {
142 return; 142 return;
143 } 143 }
144 144
145 // Make slow movements at least 3 units on lenght 145 // Make slow movements at least 3 units on length
146 if (move_distance < 3.0f) { 146 if (move_distance < 3.0f) {
147 // Normalize value 147 // Normalize value
148 mouse_change /= move_distance; 148 mouse_change /= move_distance;
@@ -154,7 +154,7 @@ void Mouse::Move(int x, int y, int center_x, int center_y) {
154 154
155 const auto last_move_distance = last_mouse_change.Length(); 155 const auto last_move_distance = last_mouse_change.Length();
156 156
157 // Make fast movements clamp to 8 units on lenght 157 // Make fast movements clamp to 8 units on length
158 if (last_move_distance > 8.0f) { 158 if (last_move_distance > 8.0f) {
159 // Normalize value 159 // Normalize value
160 last_mouse_change /= last_move_distance; 160 last_mouse_change /= last_move_distance;