win32: Disable controller port 2 if controller 2 is disabled.

This commit is contained in:
Brandon Wright 2018-12-18 16:48:50 -06:00
parent f8033eb856
commit 5edd667f11
1 changed files with 4 additions and 1 deletions

View File

@ -644,7 +644,10 @@ void ChangeInputDevice(void)
default:
case SNES_JOYPAD:
S9xSetController(0, CTL_JOYPAD, 0, 0, 0, 0);
S9xSetController(1, CTL_JOYPAD, 1, 0, 0, 0);
if (Joypad[1].Enabled)
S9xSetController(1, CTL_JOYPAD, 1, 0, 0, 0);
else
S9xSetController(1, CTL_NONE, 0, 0, 0, 0);
break;
}