diff options
| author | 2023-05-04 22:36:59 -0600 | |
|---|---|---|
| committer | 2023-05-04 22:36:59 -0600 | |
| commit | 8df3aed2f154193869881c4eccf507f9d1ba5ff4 (patch) | |
| tree | c2783aed082706d3352bc947e07cb85d0fecad0c /src | |
| parent | Merge pull request #10153 from FernandoS27/a-quickie-fixie (diff) | |
| download | yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.tar.gz yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.tar.xz yuzu-8df3aed2f154193869881c4eccf507f9d1ba5ff4.zip | |
core: hid: Fix state of capture and home buttons
Diffstat (limited to 'src')
| -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() { | |||
| 551 | void EmulatedController::DisableSystemButtons() { | 551 | void EmulatedController::DisableSystemButtons() { |
| 552 | std::scoped_lock lock{mutex}; | 552 | std::scoped_lock lock{mutex}; |
| 553 | system_buttons_enabled = false; | 553 | system_buttons_enabled = false; |
| 554 | controller.home_button_state.raw = 0; | ||
| 555 | controller.capture_button_state.raw = 0; | ||
| 554 | } | 556 | } |
| 555 | 557 | ||
| 556 | void EmulatedController::ResetSystemButtons() { | 558 | void EmulatedController::ResetSystemButtons() { |
| @@ -734,6 +736,8 @@ void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback | |||
| 734 | if (is_configuring) { | 736 | if (is_configuring) { |
| 735 | controller.npad_button_state.raw = NpadButton::None; | 737 | controller.npad_button_state.raw = NpadButton::None; |
| 736 | controller.debug_pad_button_state.raw = 0; | 738 | controller.debug_pad_button_state.raw = 0; |
| 739 | controller.home_button_state.raw = 0; | ||
| 740 | controller.capture_button_state.raw = 0; | ||
| 737 | lock.unlock(); | 741 | lock.unlock(); |
| 738 | TriggerOnChange(ControllerTriggerType::Button, false); | 742 | TriggerOnChange(ControllerTriggerType::Button, false); |
| 739 | return; | 743 | return; |