(RMenu) Ingame menu selection now wraps-around

This commit is contained in:
Twinaphex 2012-08-20 21:45:34 +02:00
parent 196242aab1
commit 5a1f146dd6

View File

@ -2020,12 +2020,16 @@ static void ingame_menu(menu *current_menu, uint64_t input)
{
if(g_console.ingame_menu_item > 0)
g_console.ingame_menu_item--;
else
g_console.ingame_menu_item = MENU_ITEM_LAST - 1;
}
if(input & (1 << RMENU_DEVICE_NAV_DOWN))
{
if(g_console.ingame_menu_item < (MENU_ITEM_LAST-1))
g_console.ingame_menu_item++;
else
g_console.ingame_menu_item = 0;
}
if((input & (1 << RMENU_DEVICE_NAV_L3)) && (input & (1 << RMENU_DEVICE_NAV_R3)))