summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
-rw-r--r--src/core/hid/emulated_controller.cpp4
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() {
551void EmulatedController::DisableSystemButtons() { 551void 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
556void EmulatedController::ResetSystemButtons() { 558void 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;