summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.cpp
diff options
context:
space:
mode:
authorGravatar german772022-01-23 21:54:33 -0600
committerGravatar german772022-01-23 21:54:33 -0600
commitebf19616f4698700738656ae09b0d9705566b9a1 (patch)
treebc7d846c3eb77831678b3308a2a238b3a995f2ab /src/core/hid/emulated_controller.cpp
parentMerge pull request #7761 from v1993/patch-8 (diff)
downloadyuzu-ebf19616f4698700738656ae09b0d9705566b9a1.tar.gz
yuzu-ebf19616f4698700738656ae09b0d9705566b9a1.tar.xz
yuzu-ebf19616f4698700738656ae09b0d9705566b9a1.zip
input_common: Add option to configure gyro threshold
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
-rw-r--r--src/core/hid/emulated_controller.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp
index d12037b11..a7cdf45e6 100644
--- a/src/core/hid/emulated_controller.cpp
+++ b/src/core/hid/emulated_controller.cpp
@@ -749,6 +749,7 @@ void EmulatedController::SetMotion(const Common::Input::CallbackStatus& callback
749 raw_status.gyro.y.value, 749 raw_status.gyro.y.value,
750 raw_status.gyro.z.value, 750 raw_status.gyro.z.value,
751 }); 751 });
752 emulated.SetGyroThreshold(raw_status.gyro.x.properties.threshold);
752 emulated.UpdateRotation(raw_status.delta_timestamp); 753 emulated.UpdateRotation(raw_status.delta_timestamp);
753 emulated.UpdateOrientation(raw_status.delta_timestamp); 754 emulated.UpdateOrientation(raw_status.delta_timestamp);
754 force_update_motion = raw_status.force_update; 755 force_update_motion = raw_status.force_update;