mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-16 15:39:54 +00:00
(Menu) Better key binding for the arcade joypad typing
This commit is contained in:
parent
c025f7a8c8
commit
49c4f45dc4
@ -1341,8 +1341,15 @@ unsigned menu_input_frame_retropad(retro_input_t input,
|
||||
ti_next = true;
|
||||
}
|
||||
|
||||
if (trigger_input & (UINT64_C(1) << RETRO_DEVICE_ID_JOYPAD_B))
|
||||
{
|
||||
input_keyboard_event(true, '\x7f', '\x7f', 0, RETRO_DEVICE_KEYBOARD);
|
||||
ti_char = 64;
|
||||
ti_next = false;
|
||||
}
|
||||
|
||||
/* send return key to close keyboard input window */
|
||||
if (trigger_input & (UINT64_C(1) << settings->menu_cancel_btn))
|
||||
if (trigger_input & (UINT64_C(1) << RETRO_DEVICE_ID_JOYPAD_START))
|
||||
input_keyboard_event(true, '\n', '\n', 0, RETRO_DEVICE_KEYBOARD);
|
||||
|
||||
trigger_input = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user