diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-05-08 19:17:27 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-05-08 20:06:38 +0200 |
commit | 97bd6d641811cafc3ec99879fa53beda1a2334b5 (patch) | |
tree | ec3946ddaa935829006ceb2b46995fe493621dba /src/core/hid/emulated_controller.cpp | |
parent | Merge pull request #10075 from Kelebek1/silence_nifm_spam (diff) | |
download | yuzu-97bd6d641811cafc3ec99879fa53beda1a2334b5.tar yuzu-97bd6d641811cafc3ec99879fa53beda1a2334b5.tar.gz yuzu-97bd6d641811cafc3ec99879fa53beda1a2334b5.tar.bz2 yuzu-97bd6d641811cafc3ec99879fa53beda1a2334b5.tar.lz yuzu-97bd6d641811cafc3ec99879fa53beda1a2334b5.tar.xz yuzu-97bd6d641811cafc3ec99879fa53beda1a2334b5.tar.zst yuzu-97bd6d641811cafc3ec99879fa53beda1a2334b5.zip |
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
-rw-r--r-- | src/core/hid/emulated_controller.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index c7f0af71f..366880711 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp @@ -688,6 +688,12 @@ void EmulatedController::SetMotionParam(std::size_t index, Common::ParamPackage ReloadInput(); } +void EmulatedController::StartMotionCalibration() { + for (ControllerMotionInfo& motion : controller.motion_values) { + motion.emulated.Calibrate(); + } +} + void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index, Common::UUID uuid) { if (index >= controller.button_values.size()) { |