Browse Source

Correct assignment source for rotations

Found by static analysis with PVS-Studio
pull/15/merge
Valeri 4 years ago
committed by GitHub
parent
commit
c624edceba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/hid/emulated_console.cpp

2
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();

Loading…
Cancel
Save