service/hid: Improve console motion accuracy

This commit is contained in:
Narr the Reg 2021-11-29 12:40:29 -06:00 committed by german77
parent 815189eaf3
commit 316f80af87
6 changed files with 32 additions and 20 deletions

View file

@ -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);
}