diff options
| author | 2022-01-17 10:40:41 +0300 | |
|---|---|---|
| committer | 2022-01-17 10:40:41 +0300 | |
| commit | c624edceba98db4fde8ba3bb30c2f3fd19e8823f (patch) | |
| tree | 6f501ddc297d84453ebb1f105d6399997e9a948c /src/core/hid/emulated_console.cpp | |
| parent | Merge pull request #7713 from gidoly/patch-3 (diff) | |
| download | yuzu-c624edceba98db4fde8ba3bb30c2f3fd19e8823f.tar.gz yuzu-c624edceba98db4fde8ba3bb30c2f3fd19e8823f.tar.xz yuzu-c624edceba98db4fde8ba3bb30c2f3fd19e8823f.zip | |
Correct assignment source for rotations
Found by static analysis with PVS-Studio
Diffstat (limited to 'src/core/hid/emulated_console.cpp')
| -rw-r--r-- | src/core/hid/emulated_console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp index 08f8af551..eef0ff493 100644 --- a/src/core/hid/emulated_console.cpp +++ b/src/core/hid/emulated_console.cpp | |||
| @@ -158,7 +158,7 @@ void EmulatedConsole::SetMotion(const Common::Input::CallbackStatus& callback) { | |||
| 158 | auto& motion = console.motion_state; | 158 | auto& motion = console.motion_state; |
| 159 | motion.accel = emulated.GetAcceleration(); | 159 | motion.accel = emulated.GetAcceleration(); |
| 160 | motion.gyro = emulated.GetGyroscope(); | 160 | motion.gyro = emulated.GetGyroscope(); |
| 161 | motion.rotation = emulated.GetGyroscope(); | 161 | motion.rotation = emulated.GetRotations(); |
| 162 | motion.orientation = emulated.GetOrientation(); | 162 | motion.orientation = emulated.GetOrientation(); |
| 163 | motion.quaternion = emulated.GetQuaternion(); | 163 | motion.quaternion = emulated.GetQuaternion(); |
| 164 | motion.gyro_bias = emulated.GetGyroBias(); | 164 | motion.gyro_bias = emulated.GetGyroBias(); |