mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-26 03:01:50 +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 */
|
/* Update Wii controllers status */
|
||||||
WPAD_ScanPads();
|
WPAD_ScanPads();
|
||||||
|
|
||||||
/* Default fast-forward key combo */
|
/* Default Wii controller menu keys */
|
||||||
if (WPAD_ButtonsDown(0) & (WPAD_BUTTON_HOME | WPAD_CLASSIC_BUTTON_HOME))
|
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))
|
if (WPAD_ButtonsHeld(0) & (WPAD_BUTTON_MINUS | WPAD_CLASSIC_BUTTON_MINUS))
|
||||||
{
|
{
|
||||||
audioSync ^= AUDIO_WAIT;
|
audioSync ^= AUDIO_WAIT;
|
||||||
videoSync = (audioSync && config.vsync && (gc_pal != vdp_pal)) ? VIDEO_WAIT : 0;
|
videoSync = (audioSync && config.vsync && (gc_pal != vdp_pal)) ? VIDEO_WAIT : 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Return to main menu */
|
||||||
|
ConfigRequested = 1;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user