diff options
| author | 2023-05-05 12:02:15 -0700 | |
|---|---|---|
| committer | 2023-05-05 12:02:15 -0700 | |
| commit | bb2e407772cde74610e191ec2f66e1afafc03a1e (patch) | |
| tree | c80cc19667c87fefb14b326474066326c2d00e7d /src/core/hid/emulated_controller.cpp | |
| 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.gz yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.tar.xz yuzu-bb2e407772cde74610e191ec2f66e1afafc03a1e.zip | |
Merge pull request #10159 from german77/home_screenshot
core: hid: Fix state of capture and home buttons
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -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; |