mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
Brings up RMenu now for me
This commit is contained in:
parent
5c16cff2e7
commit
2c44563dba
android/native/jni
@ -367,12 +367,14 @@ static void android_input_poll(void *data)
|
|||||||
&& input_state > 0)
|
&& input_state > 0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
*lifecycle_state |= (1ULL << RARCH_QUIT_KEY);
|
*lifecycle_state |= (1ULL << RARCH_QUIT_KEY);
|
||||||
AInputQueue_finishEvent(android_app->inputQueue, event, handled);
|
AInputQueue_finishEvent(android_app->inputQueue, event, handled);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type_event == AINPUT_EVENT_TYPE_MOTION)
|
if (type_event == AINPUT_EVENT_TYPE_MOTION)
|
||||||
@ -461,6 +463,11 @@ static void android_input_poll(void *data)
|
|||||||
else if (ident == LOOPER_ID_MAIN)
|
else if (ident == LOOPER_ID_MAIN)
|
||||||
engine_handle_cmd();
|
engine_handle_cmd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(g_extern.frame_count < g_extern.delay_timer[0]) && g_extern.lifecycle_state & (1ULL << RARCH_RMENU_TOGGLE))
|
||||||
|
{
|
||||||
|
g_extern.lifecycle_state |= (1ULL << RARCH_QUIT_KEY);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int16_t android_input_state(void *data, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned index, unsigned id)
|
static int16_t android_input_state(void *data, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned index, unsigned id)
|
||||||
|
@ -139,7 +139,11 @@ void input_autodetect_setup (void *data, char *msg, size_t sizeof_msg, unsigned
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
keycode_lut[AKEYCODE_MENU] |= ((RARCH_RMENU_TOGGLE + 1) << shift);
|
keycode_lut[AKEYCODE_MENU] |= ((RARCH_RMENU_TOGGLE + 1) << shift);
|
||||||
|
#else
|
||||||
|
keycode_lut[AKEYCODE_BACK] |= ((RARCH_RMENU_TOGGLE + 1) << shift);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (g_settings.input.autodetect_enable)
|
if (g_settings.input.autodetect_enable)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user