diff options
author | german77 <juangerman-13@hotmail.com> | 2023-09-16 08:21:47 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-09-16 08:31:19 +0200 |
commit | 8950fe79ad0f1a10880556856eca9f987cdfd886 (patch) | |
tree | 8fed94e0fdad0043aa70af8ba4ba01793b658d12 /src/core/hle/service/hid/controllers/npad.cpp | |
parent | service: hid: Ensure state is correct (diff) | |
download | yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.gz yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.bz2 yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.lz yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.xz yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.tar.zst yuzu-8950fe79ad0f1a10880556856eca9f987cdfd886.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index a894af8ea..da3220ddc 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -476,6 +476,10 @@ void Controller_NPad::RequestPadStateUpdate(Core::HID::NpadIdType npad_id) { pad_entry.npad_buttons.l.Assign(button_state.zl); pad_entry.npad_buttons.r.Assign(button_state.zr); } + + if (pad_entry.npad_buttons.raw != Core::HID::NpadButton::None) { + hid_core.SetLastActiveController(npad_id); + } } void Controller_NPad::OnUpdate(const Core::Timing::CoreTiming& core_timing) { |