Browse Source
Merge pull request #10159 from german77/home_screenshot
core: hid: Fix state of capture and home buttons
pull/15/merge
bunnei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/core/hid/emulated_controller.cpp
|
|
@ -551,6 +551,8 @@ void EmulatedController::EnableSystemButtons() { |
|
|
void EmulatedController::DisableSystemButtons() { |
|
|
void EmulatedController::DisableSystemButtons() { |
|
|
std::scoped_lock lock{mutex}; |
|
|
std::scoped_lock lock{mutex}; |
|
|
system_buttons_enabled = false; |
|
|
system_buttons_enabled = false; |
|
|
|
|
|
controller.home_button_state.raw = 0; |
|
|
|
|
|
controller.capture_button_state.raw = 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void EmulatedController::ResetSystemButtons() { |
|
|
void EmulatedController::ResetSystemButtons() { |
|
|
@ -734,6 +736,8 @@ void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback |
|
|
if (is_configuring) { |
|
|
if (is_configuring) { |
|
|
controller.npad_button_state.raw = NpadButton::None; |
|
|
controller.npad_button_state.raw = NpadButton::None; |
|
|
controller.debug_pad_button_state.raw = 0; |
|
|
controller.debug_pad_button_state.raw = 0; |
|
|
|
|
|
controller.home_button_state.raw = 0; |
|
|
|
|
|
controller.capture_button_state.raw = 0; |
|
|
lock.unlock(); |
|
|
lock.unlock(); |
|
|
TriggerOnChange(ControllerTriggerType::Button, false); |
|
|
TriggerOnChange(ControllerTriggerType::Button, false); |
|
|
return; |
|
|
return; |
|
|
|