From e4a1237413cb91fb7ac6fe1f1bc2cdbfca769391 Mon Sep 17 00:00:00 2001 From: ekeeke Date: Sat, 26 Nov 2022 14:56:26 +0100 Subject: [PATCH] [Wii] added back default menu key (HOME button) to prevent lockups in case of incorrect input settings --- gx/gx_input.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gx/gx_input.c b/gx/gx_input.c index 89f7534..ee62636 100644 --- a/gx/gx_input.c +++ b/gx/gx_input.c @@ -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