diff options
author | german77 <juangerman-13@hotmail.com> | 2023-05-05 06:36:59 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-05-05 06:36:59 +0200 |
commit | 8df3aed2f154193869881c4eccf507f9d1ba5ff4 (patch) | |
tree | c2783aed082706d3352bc947e07cb85d0fecad0c | |
parent | Merge pull request #10153 from FernandoS27/a-quickie-fixie (diff) | |
download | yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.tar yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.tar.gz yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.tar.bz2 yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.tar.lz yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.tar.xz yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.tar.zst yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.zip |
Diffstat (limited to '')
-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; |