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,12 +866,15 @@ 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:
/* Do not disable port if a 4-player adaptor is used */
if (input_type[2] != RETRO_DEVICE_GAMEPAD || input_type[3] != RETRO_DEVICE_GAMEPAD)
{
input_type[4] = 0; input_type[4] = 0;
FCEUI_SetInputFC(SIFC_NONE, NULL, 0); FCEUI_SetInputFC(SIFC_NONE, NULL, 0);
FCEU_printf("Famicom Expansion: None\n");
break; break;
} }
} }
}
static void check_variables(bool startup) static void check_variables(bool startup)
{ {