mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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 bool return_pressed;
|
||||
|
||||
bool input_keyboard_return_pressed()
|
||||
{
|
||||
return return_pressed;
|
||||
}
|
||||
|
||||
static void input_keyboard_line_toggle_osk(bool enable)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
@ -200,6 +207,9 @@ void input_keyboard_event(bool down, unsigned code,
|
||||
{
|
||||
static bool deferred_wait_keys;
|
||||
|
||||
if (code == RETROK_RETURN || code == RETROK_UNKNOWN)
|
||||
return_pressed = down;
|
||||
|
||||
if (deferred_wait_keys)
|
||||
{
|
||||
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_return_pressed();
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user