mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(GX) fix menu button on GameCube
This commit is contained in:
parent
348a240dee
commit
3058363d49
@ -465,19 +465,14 @@ static bool gx_key_pressed(void *data, int key)
|
|||||||
case RARCH_QUIT_KEY:
|
case RARCH_QUIT_KEY:
|
||||||
if(IS_TIMER_EXPIRED(gx))
|
if(IS_TIMER_EXPIRED(gx))
|
||||||
{
|
{
|
||||||
|
uint64_t goto_menu_pressed = pad_state[0] & (GX_WIIMOTE_HOME
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
uint64_t goto_menu_pressed_classic = pad_state[0] & GX_CLASSIC_HOME;
|
| GX_CLASSIC_HOME
|
||||||
uint64_t goto_menu_pressed_wiimote = pad_state[0] & GX_WIIMOTE_HOME;
|
|
||||||
#endif
|
#endif
|
||||||
|
);
|
||||||
uint64_t quit_rarch = pad_state[0] & GX_QUIT_KEY;
|
uint64_t quit_rarch = pad_state[0] & GX_QUIT_KEY;
|
||||||
bool retval = false;
|
bool retval = false;
|
||||||
g_console.menu_enable = ((quit_rarch
|
g_console.menu_enable = ((quit_rarch || goto_menu_pressed) && IS_TIMER_EXPIRED(gx));
|
||||||
#ifdef HW_RVL
|
|
||||||
|| goto_menu_pressed_classic || goto_menu_pressed_wiimote)
|
|
||||||
#else
|
|
||||||
)
|
|
||||||
#endif
|
|
||||||
&& IS_TIMER_EXPIRED(gx));
|
|
||||||
|
|
||||||
if(g_console.menu_enable)
|
if(g_console.menu_enable)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user