mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
(RMenu) Ingame menu selection now wraps-around
This commit is contained in:
parent
196242aab1
commit
5a1f146dd6
@ -2020,12 +2020,16 @@ static void ingame_menu(menu *current_menu, uint64_t input)
|
|||||||
{
|
{
|
||||||
if(g_console.ingame_menu_item > 0)
|
if(g_console.ingame_menu_item > 0)
|
||||||
g_console.ingame_menu_item--;
|
g_console.ingame_menu_item--;
|
||||||
|
else
|
||||||
|
g_console.ingame_menu_item = MENU_ITEM_LAST - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(input & (1 << RMENU_DEVICE_NAV_DOWN))
|
if(input & (1 << RMENU_DEVICE_NAV_DOWN))
|
||||||
{
|
{
|
||||||
if(g_console.ingame_menu_item < (MENU_ITEM_LAST-1))
|
if(g_console.ingame_menu_item < (MENU_ITEM_LAST-1))
|
||||||
g_console.ingame_menu_item++;
|
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)))
|
if((input & (1 << RMENU_DEVICE_NAV_L3)) && (input & (1 << RMENU_DEVICE_NAV_R3)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user