mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Menu) RetroPad: Bind X to 'Search'
This commit is contained in:
parent
ff8fec64ad
commit
2b0cefee0d
@ -3985,6 +3985,10 @@ static int action_iterate_main(const char *label, unsigned action)
|
||||
driver.menu->msg_force = true;
|
||||
break;
|
||||
|
||||
case MENU_ACTION_SEARCH:
|
||||
menu_input_search_start();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -493,8 +493,8 @@ unsigned menu_input_frame(retro_input_t input, retro_input_t trigger_input)
|
||||
return MENU_ACTION_CANCEL;
|
||||
if (trigger_input & (1ULL << RETRO_DEVICE_ID_JOYPAD_A))
|
||||
return MENU_ACTION_OK;
|
||||
if (trigger_input & (1ULL << RETRO_DEVICE_ID_JOYPAD_Y))
|
||||
return MENU_ACTION_Y;
|
||||
if (trigger_input & (1ULL << RETRO_DEVICE_ID_JOYPAD_X))
|
||||
return MENU_ACTION_SEARCH;
|
||||
if (trigger_input & (1ULL << RETRO_DEVICE_ID_JOYPAD_START))
|
||||
return MENU_ACTION_START;
|
||||
if (trigger_input & (1ULL << RETRO_DEVICE_ID_JOYPAD_SELECT))
|
||||
|
@ -31,7 +31,7 @@ typedef enum
|
||||
MENU_ACTION_LEFT,
|
||||
MENU_ACTION_RIGHT,
|
||||
MENU_ACTION_OK,
|
||||
MENU_ACTION_Y,
|
||||
MENU_ACTION_SEARCH,
|
||||
MENU_ACTION_CANCEL,
|
||||
MENU_ACTION_REFRESH,
|
||||
MENU_ACTION_SELECT,
|
||||
|
Loading…
x
Reference in New Issue
Block a user