diff options
author | bunnei <bunneidev@gmail.com> | 2023-05-05 21:02:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 21:02:15 +0200 |
commit | bb2e407772cde74610e191ec2f66e1afafc03a1e (patch) | |
tree | c80cc19667c87fefb14b326474066326c2d00e7d | |
parent | Merge pull request #10128 from Kelebek1/audren_terminate (diff) | |
parent | core: hid: Fix state of capture and home buttons (diff) | |
download | yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.tar yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.tar.gz yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.tar.bz2 yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.tar.lz yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.tar.xz yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.tar.zst yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.zip |
-rw-r--r-- | src/core/hid/emulated_controller.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index a70f8807c..db71f1c19 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp @@ -551,6 +551,8 @@ void EmulatedController::EnableSystemButtons() { void EmulatedController::DisableSystemButtons() { std::scoped_lock lock{mutex}; system_buttons_enabled = false; + controller.home_button_state.raw = 0; + controller.capture_button_state.raw = 0; } void EmulatedController::ResetSystemButtons() { @@ -734,6 +736,8 @@ void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback if (is_configuring) { controller.npad_button_state.raw = NpadButton::None; controller.debug_pad_button_state.raw = 0; + controller.home_button_state.raw = 0; + controller.capture_button_state.raw = 0; lock.unlock(); TriggerOnChange(ControllerTriggerType::Button, false); return; |