mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
fix joypad A button in OSK
This commit is contained in:
parent
763a925a17
commit
3354c07810
@ -46,6 +46,13 @@ static input_keyboard_press_t g_keyboard_press_cb;
|
|||||||
|
|
||||||
static void *g_keyboard_press_data;
|
static void *g_keyboard_press_data;
|
||||||
|
|
||||||
|
static bool return_pressed;
|
||||||
|
|
||||||
|
bool input_keyboard_return_pressed()
|
||||||
|
{
|
||||||
|
return return_pressed;
|
||||||
|
}
|
||||||
|
|
||||||
static void input_keyboard_line_toggle_osk(bool enable)
|
static void input_keyboard_line_toggle_osk(bool enable)
|
||||||
{
|
{
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
@ -200,6 +207,9 @@ void input_keyboard_event(bool down, unsigned code,
|
|||||||
{
|
{
|
||||||
static bool deferred_wait_keys;
|
static bool deferred_wait_keys;
|
||||||
|
|
||||||
|
if (code == RETROK_RETURN || code == RETROK_UNKNOWN)
|
||||||
|
return_pressed = down;
|
||||||
|
|
||||||
if (deferred_wait_keys)
|
if (deferred_wait_keys)
|
||||||
{
|
{
|
||||||
if (down)
|
if (down)
|
||||||
|
@ -96,6 +96,8 @@ const char **input_keyboard_start_line(void *userdata,
|
|||||||
|
|
||||||
bool input_keyboard_ctl(enum rarch_input_keyboard_ctl_state state, void *data);
|
bool input_keyboard_ctl(enum rarch_input_keyboard_ctl_state state, void *data);
|
||||||
|
|
||||||
|
bool input_keyboard_return_pressed();
|
||||||
|
|
||||||
RETRO_END_DECLS
|
RETRO_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -885,7 +885,7 @@ static enum runloop_state runloop_check_state(
|
|||||||
menu_ctx_iterate_t iter;
|
menu_ctx_iterate_t iter;
|
||||||
bool skip = false;
|
bool skip = false;
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
skip = osk_enable && BIT64_GET(trigger_input, settings->menu_ok_btn);
|
skip = osk_enable && input_keyboard_return_pressed();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!skip)
|
if (!skip)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user