2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

npad: Add check for HANDHELD_INDEX in UpdateControllerAt()

This commit is contained in:
Morph 2021-01-17 22:36:17 -05:00
parent e8401964b4
commit 4a67a5b917

View file

@ -892,7 +892,7 @@ void Controller_NPad::UpdateControllerAt(NPadControllerType controller, std::siz
return; return;
} }
if (controller == NPadControllerType::Handheld) { if (controller == NPadControllerType::Handheld && npad_index == HANDHELD_INDEX) {
Settings::values.players.GetValue()[HANDHELD_INDEX].controller_type = Settings::values.players.GetValue()[HANDHELD_INDEX].controller_type =
MapNPadToSettingsType(controller); MapNPadToSettingsType(controller);
Settings::values.players.GetValue()[HANDHELD_INDEX].connected = true; Settings::values.players.GetValue()[HANDHELD_INDEX].connected = true;