From 49c4f45dc4311295ec680a1d782acb57f7f6a6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Sat, 18 Jun 2016 14:30:34 +0200 Subject: [PATCH] (Menu) Better key binding for the arcade joypad typing --- menu/menu_input.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/menu/menu_input.c b/menu/menu_input.c index 9c396983f0..790d365f6f 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -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;