summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-01-18 04:36:17 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-01-18 04:36:17 +0100
commit4a67a5b917d1cb3990bcd46f1f26fcade4efe471 (patch)
treef87dfaef4b59b7051ca19367fb8eef8cf3bf2707
parentMerge pull request #5360 from ReinUsesLisp/enforce-memclass-access (diff)
downloadyuzu-4a67a5b917d1cb3990bcd46f1f26fcade4efe471.tar
yuzu-4a67a5b917d1cb3990bcd46f1f26fcade4efe471.tar.gz
yuzu-4a67a5b917d1cb3990bcd46f1f26fcade4efe471.tar.bz2
yuzu-4a67a5b917d1cb3990bcd46f1f26fcade4efe471.tar.lz
yuzu-4a67a5b917d1cb3990bcd46f1f26fcade4efe471.tar.xz
yuzu-4a67a5b917d1cb3990bcd46f1f26fcade4efe471.tar.zst
yuzu-4a67a5b917d1cb3990bcd46f1f26fcade4efe471.zip
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 1082be489..ff783b3cc 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -892,7 +892,7 @@ void Controller_NPad::UpdateControllerAt(NPadControllerType controller, std::siz
return;
}
- if (controller == NPadControllerType::Handheld) {
+ if (controller == NPadControllerType::Handheld && npad_index == HANDHELD_INDEX) {
Settings::values.players.GetValue()[HANDHELD_INDEX].controller_type =
MapNPadToSettingsType(controller);
Settings::values.players.GetValue()[HANDHELD_INDEX].connected = true;