mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 17:00:57 +01:00
Merge pull request #5757 from Morph1984/npad-handheld
npad: Add check for HANDHELD_INDEX in UpdateControllerAt()
This commit is contained in:
commit
dd0679d710
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue