(Menu) RetroPad: Bind X to 'Search'

This commit is contained in:
twinaphex 2015-02-02 00:55:10 +01:00
parent ff8fec64ad
commit 2b0cefee0d
3 changed files with 7 additions and 3 deletions

View File

@ -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;
}

View File

@ -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))

View File

@ -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,