summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_console.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2021-12-21 00:13:54 -0800
committerGravatar GitHub2021-12-21 00:13:54 -0800
commit5e24f7ed3106542838a557dd2cc872e7e338fbb5 (patch)
treeac773436f7767a0d5c6c411f0717269cbd19f29a /src/core/hid/emulated_console.cpp
parentMerge pull request #7609 from Tatsh/file-assoc (diff)
parentservice/hid: Improve console motion accuracy (diff)
downloadyuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.tar.gz
yuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.tar.xz
yuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.zip
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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hid/emulated_console.cpp b/src/core/hid/emulated_console.cpp
index 685ec080c..08f8af551 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) {
161 motion.rotation = emulated.GetGyroscope(); 161 motion.rotation = emulated.GetGyroscope();
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.is_at_rest = !emulated.IsMoving(motion_sensitivity); 165 motion.is_at_rest = !emulated.IsMoving(motion_sensitivity);
166 // Find what is this value
167 motion.verticalization_error = 0.0f;
165 168
166 TriggerOnChange(ConsoleTriggerType::Motion); 169 TriggerOnChange(ConsoleTriggerType::Motion);
167} 170}