mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
menu_input_frame_retropad - cleanup
This commit is contained in:
parent
4ec6cb47ec
commit
b5e7861125
@ -1284,7 +1284,6 @@ unsigned menu_input_frame_retropad(retro_input_t input,
|
||||
bool set_scroll = false;
|
||||
size_t new_scroll_accel = 0;
|
||||
menu_input_t *menu_input = menu_input_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
if (!menu_input)
|
||||
return 0;
|
||||
@ -1347,6 +1346,8 @@ unsigned menu_input_frame_retropad(retro_input_t input,
|
||||
|
||||
if (menu_input->keyboard.display)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
/* send return key to close keyboard input window */
|
||||
if (trigger_input & (UINT64_C(1) << settings->menu_cancel_btn))
|
||||
input_keyboard_event(true, '\n', '\n', 0, RETRO_DEVICE_KEYBOARD);
|
||||
|
Loading…
x
Reference in New Issue
Block a user