(GX) Experiment to see if menu triggering can still work through this

new mechanism
This commit is contained in:
twinaphex 2014-10-13 05:16:59 +02:00
parent 44b771813a
commit b490e22080
2 changed files with 2 additions and 6 deletions

View File

@ -94,8 +94,7 @@ static void gx_input_poll(void *data)
static bool gx_input_key_pressed(void *data, int key) static bool gx_input_key_pressed(void *data, int key)
{ {
return (g_extern.lifecycle_state & (1ULL << key)) || return input_joypad_pressed(&gx_joypad, 0, g_settings.input.binds[0], key);
input_joypad_pressed(&gx_joypad, 0, g_settings.input.binds[0], key);
} }
static uint64_t gx_input_get_capabilities(void *data) static uint64_t gx_input_get_capabilities(void *data)

View File

@ -510,9 +510,6 @@ static void gx_joypad_poll(void)
} }
uint64_t *state_p1 = &pad_state[0]; uint64_t *state_p1 = &pad_state[0];
uint64_t *lifecycle_state = &g_extern.lifecycle_state;
*lifecycle_state &= ~((1ULL << RARCH_MENU_TOGGLE));
if (g_menu) if (g_menu)
{ {
@ -525,7 +522,7 @@ static void gx_joypad_poll(void)
| (1ULL << GX_CLASSIC_HOME) | (1ULL << GX_CLASSIC_HOME)
#endif #endif
)) ))
*lifecycle_state |= (1ULL << RARCH_MENU_TOGGLE); g_extern.lifecycle_state |= (1ULL << RARCH_MENU_TOGGLE);
} }
static bool gx_joypad_query_pad(unsigned pad) static bool gx_joypad_query_pad(unsigned pad)