diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-05-05 20:29:26 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-05-05 21:53:38 +0200 |
commit | 46e835f2d6531baea061a2723d171a2f5a1abf6a (patch) | |
tree | dab41bff4babe44fd5850c6f5042090d7179bf82 /src/core/hid/emulated_controller.cpp | |
parent | Merge pull request #10153 from FernandoS27/a-quickie-fixie (diff) | |
download | yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.gz yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.bz2 yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.lz yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.xz yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.tar.zst yuzu-46e835f2d6531baea061a2723d171a2f5a1abf6a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hid/emulated_controller.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index a70f8807c..a5c2e3db8 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp @@ -376,6 +376,7 @@ void EmulatedController::ReloadInput() { motion.accel = emulated_motion.GetAcceleration(); motion.gyro = emulated_motion.GetGyroscope(); motion.rotation = emulated_motion.GetRotations(); + motion.euler = emulated_motion.GetEulerAngles(); motion.orientation = emulated_motion.GetOrientation(); motion.is_at_rest = !emulated_motion.IsMoving(motion_sensitivity); } @@ -976,14 +977,11 @@ void EmulatedController::SetMotion(const Common::Input::CallbackStatus& callback emulated.UpdateOrientation(raw_status.delta_timestamp); force_update_motion = raw_status.force_update; - if (is_configuring) { - return; - } - auto& motion = controller.motion_state[index]; motion.accel = emulated.GetAcceleration(); motion.gyro = emulated.GetGyroscope(); motion.rotation = emulated.GetRotations(); + motion.euler = emulated.GetEulerAngles(); motion.orientation = emulated.GetOrientation(); motion.is_at_rest = !emulated.IsMoving(motion_sensitivity); } |