Răsfoiți Sursa

input_common: fix copy-paste error

Found by static analysis with PVS-Studio.
Valeri 4 ani în urmă
părinte
comite
a99f84f4b2
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/input_common/drivers/mouse.cpp

+ 1 - 1
src/input_common/drivers/mouse.cpp

@@ -31,7 +31,7 @@ Mouse::Mouse(std::string input_engine_) : InputEngine(std::move(input_engine_))
     PreSetAxis(identifier, wheel_axis_x);
     PreSetAxis(identifier, wheel_axis_y);
     PreSetAxis(identifier, touch_axis_x);
-    PreSetAxis(identifier, touch_axis_x);
+    PreSetAxis(identifier, touch_axis_y);
     update_thread = std::jthread([this](std::stop_token stop_token) { UpdateThread(stop_token); });
 }