From ebf19616f4698700738656ae09b0d9705566b9a1 Mon Sep 17 00:00:00 2001 From: german77 Date: Sun, 23 Jan 2022 21:54:33 -0600 Subject: input_common: Add option to configure gyro threshold --- src/core/hid/emulated_controller.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/hid/emulated_controller.cpp') 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 raw_status.gyro.y.value, raw_status.gyro.z.value, }); + emulated.SetGyroThreshold(raw_status.gyro.x.properties.threshold); emulated.UpdateRotation(raw_status.delta_timestamp); emulated.UpdateOrientation(raw_status.delta_timestamp); force_update_motion = raw_status.force_update; -- cgit v1.2.3