mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-13 06:15:07 +01:00
[Wii] added back default menu key (HOME button) to prevent lockups in case of incorrect input settings
This commit is contained in:
parent
4190bd1d3c
commit
e4a1237413
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user