Input: Fix input handling if a 4-player adaptor is used.

This commit is contained in:
retro-wertz
2017-11-25 11:59:04 +08:00
parent 032d86b3a4
commit ff24eeb0fb

View File

@@ -866,10 +866,13 @@ void set_input_famicom_controller(int x)
FCEU_printf("Famicom Expansion: Oeka Kids Tablet\n"); FCEU_printf("Famicom Expansion: Oeka Kids Tablet\n");
break; break;
default: default:
input_type[4] = 0; /* Do not disable port if a 4-player adaptor is used */
FCEUI_SetInputFC(SIFC_NONE, NULL, 0); if (input_type[2] != RETRO_DEVICE_GAMEPAD || input_type[3] != RETRO_DEVICE_GAMEPAD)
FCEU_printf("Famicom Expansion: None\n"); {
break; input_type[4] = 0;
FCEUI_SetInputFC(SIFC_NONE, NULL, 0);
break;
}
} }
} }