diff options
| author | bunnei <bunneidev@gmail.com> | 2022-01-27 15:44:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-27 15:44:04 -0800 |
| commit | 584eb04402a68dd88a70c57cc9f69bef26147ba0 (patch) | |
| tree | d2e4a7350ca7362b01e5ff6a16fd25f3fbdb279c /src/core/hid/emulated_controller.cpp | |
| parent | 6c0cc7303f3b6a77ef1e27f1f06aa123cdcf20bb (diff) | |
| parent | 1fca7203d3d6c01bb1332f873b0b7bc4f269c02d (diff) | |
Merge pull request #7770 from german77/motion-threshold
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index d12037b115..a7cdf45e67 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; |
