diff options
| author | 2021-11-29 12:40:29 -0600 | |
|---|---|---|
| committer | 2021-12-12 23:26:04 -0600 | |
| commit | 316f80af87c3290ad3ceda99fe9cf02f1d935b0c (patch) | |
| tree | 6b933d2399f02ff42c077d0f2f342b9ffbb21cf5 /src/core/hid/emulated_console.cpp | |
| parent | Merge pull request #7488 from vonchenplus/support_multiple_videos_playing (diff) | |
| download | yuzu-316f80af87c3290ad3ceda99fe9cf02f1d935b0c.tar.gz yuzu-316f80af87c3290ad3ceda99fe9cf02f1d935b0c.tar.xz yuzu-316f80af87c3290ad3ceda99fe9cf02f1d935b0c.zip | |
service/hid: Improve console motion accuracy
Diffstat (limited to 'src/core/hid/emulated_console.cpp')
| -rw-r--r-- | src/core/hid/emulated_console.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp index 80db8e9c6..6744c6846 100644 --- a/src/core/hid/emulated_console.cpp +++ b/src/core/hid/emulated_console.cpp | |||
| @@ -157,7 +157,10 @@ void EmulatedConsole::SetMotion(Common::Input::CallbackStatus callback) { | |||
| 157 | motion.rotation = emulated.GetGyroscope(); | 157 | motion.rotation = emulated.GetGyroscope(); |
| 158 | motion.orientation = emulated.GetOrientation(); | 158 | motion.orientation = emulated.GetOrientation(); |
| 159 | motion.quaternion = emulated.GetQuaternion(); | 159 | motion.quaternion = emulated.GetQuaternion(); |
| 160 | motion.gyro_bias = emulated.GetGyroBias(); | ||
| 160 | motion.is_at_rest = !emulated.IsMoving(motion_sensitivity); | 161 | motion.is_at_rest = !emulated.IsMoving(motion_sensitivity); |
| 162 | // Find what is this value | ||
| 163 | motion.verticalization_error = 0.0f; | ||
| 161 | 164 | ||
| 162 | TriggerOnChange(ConsoleTriggerType::Motion); | 165 | TriggerOnChange(ConsoleTriggerType::Motion); |
| 163 | } | 166 | } |