Explorar o código

Correct assignment source for rotations

Found by static analysis with PVS-Studio
Valeri %!s(int64=4) %!d(string=hai) anos
pai
achega
c624edceba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hid/emulated_console.cpp

+ 1 - 1
src/core/hid/emulated_console.cpp

@@ -158,7 +158,7 @@ void EmulatedConsole::SetMotion(const Common::Input::CallbackStatus& callback) {
     auto& motion = console.motion_state;
     motion.accel = emulated.GetAcceleration();
     motion.gyro = emulated.GetGyroscope();
-    motion.rotation = emulated.GetGyroscope();
+    motion.rotation = emulated.GetRotations();
     motion.orientation = emulated.GetOrientation();
     motion.quaternion = emulated.GetQuaternion();
     motion.gyro_bias = emulated.GetGyroBias();