[Wii] added back default menu key (HOME button) to prevent lockups in case of incorrect input settings

This commit is contained in:
ekeeke 2022-11-26 14:56:26 +01:00
parent 4190bd1d3c
commit e4a1237413

View File

@ -1721,15 +1721,20 @@ void gx_input_UpdateEmu(void)
/* Update Wii controllers status */
WPAD_ScanPads();
/* Default fast-forward key combo */
/* Default Wii controller menu keys */
if (WPAD_ButtonsDown(0) & (WPAD_BUTTON_HOME | WPAD_CLASSIC_BUTTON_HOME))
{
/* Default fast-forward key combo */
if (WPAD_ButtonsHeld(0) & (WPAD_BUTTON_MINUS | WPAD_CLASSIC_BUTTON_MINUS))
{
audioSync ^= AUDIO_WAIT;
videoSync = (audioSync && config.vsync && (gc_pal != vdp_pal)) ? VIDEO_WAIT : 0;
return;
}
/* Return to main menu */
ConfigRequested = 1;
return;
}
#endif