diff options
| author | bunnei <bunneidev@gmail.com> | 2021-12-21 00:13:54 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-21 00:13:54 -0800 |
| commit | d7d066e266666dc55dfae32fc12bc58c597d6055 (patch) | |
| tree | ac773436f7767a0d5c6c411f0717269cbd19f29a /src/core/hid/emulated_console.cpp | |
| parent | ebbf6c62eb7840644767f8e8303e3f493abe7b80 (diff) | |
| parent | 66a86f54af73ae53f671d4c09657da473a869626 (diff) | |
Merge pull request #7481 from german77/gyro-bias
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 685ec080ce..08f8af551f 100644 --- a/src/core/hid/emulated_console.cpp +++ b/src/core/hid/emulated_console.cpp @@ -161,7 +161,10 @@ void EmulatedConsole::SetMotion(const 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); } |
