diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-29 12:40:29 -0600 |
|---|---|---|
| committer | german77 <juangerman-13@hotmail.com> | 2021-12-12 23:26:04 -0600 |
| commit | 66a86f54af73ae53f671d4c09657da473a869626 (patch) | |
| tree | 6b933d2399f02ff42c077d0f2f342b9ffbb21cf5 /src/core/hid/emulated_console.cpp | |
| parent | 962a2a65a050c61196ff4de72ae234feb305ea37 (diff) | |
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 80db8e9c6d..6744c68462 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) { motion.rotation = emulated.GetGyroscope(); motion.orientation = emulated.GetOrientation(); motion.quaternion = emulated.GetQuaternion(); + motion.gyro_bias = emulated.GetGyroBias(); motion.is_at_rest = !emulated.IsMoving(motion_sensitivity); + // Find what is this value + motion.verticalization_error = 0.0f; TriggerOnChange(ConsoleTriggerType::Motion); } |
