mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Can now toggle tabs with gamepad
This commit is contained in:
parent
7ce1cf873b
commit
a3adec9417
@ -544,9 +544,9 @@ static bool zui_tab(zui_t *zui, zui_tabbed_t *tab, const char *label, bool selec
|
||||
y1 = tab->y;
|
||||
x2 = x1 + width;
|
||||
y2 = y1 + 60;
|
||||
active = check_button_up(zui, id, x1, y1, x2, y2) || selected;
|
||||
active = check_button_up(zui, id, x1, y1, x2, y2);
|
||||
|
||||
if (zui->item.active == id || tab->active == ~0)
|
||||
if (zui->item.active == id || tab->active == ~0 || selected)
|
||||
tab->active = id;
|
||||
|
||||
if (selected)
|
||||
@ -562,7 +562,7 @@ static bool zui_tab(zui_t *zui, zui_tabbed_t *tab, const char *label, bool selec
|
||||
else
|
||||
tab->x = x2;
|
||||
|
||||
return (active || (tab->active == id));
|
||||
return (active || (tab->active == id) || selected);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user