From 3058363d4940cc68cc97ad4736b5d306b6e12c92 Mon Sep 17 00:00:00 2001 From: Toad King Date: Wed, 29 Aug 2012 23:33:51 -0400 Subject: [PATCH] (GX) fix menu button on GameCube --- gx/gx_input.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/gx/gx_input.c b/gx/gx_input.c index a4b9adac13..fbdc232354 100644 --- a/gx/gx_input.c +++ b/gx/gx_input.c @@ -465,19 +465,14 @@ static bool gx_key_pressed(void *data, int key) case RARCH_QUIT_KEY: if(IS_TIMER_EXPIRED(gx)) { + uint64_t goto_menu_pressed = pad_state[0] & (GX_WIIMOTE_HOME #ifdef HW_RVL - uint64_t goto_menu_pressed_classic = pad_state[0] & GX_CLASSIC_HOME; - uint64_t goto_menu_pressed_wiimote = pad_state[0] & GX_WIIMOTE_HOME; + | GX_CLASSIC_HOME #endif + ); uint64_t quit_rarch = pad_state[0] & GX_QUIT_KEY; bool retval = false; - g_console.menu_enable = ((quit_rarch -#ifdef HW_RVL - || goto_menu_pressed_classic || goto_menu_pressed_wiimote) -#else - ) -#endif - && IS_TIMER_EXPIRED(gx)); + g_console.menu_enable = ((quit_rarch || goto_menu_pressed) && IS_TIMER_EXPIRED(gx)); if(g_console.menu_enable) {