Move input code to zarch_Iterate

This commit is contained in:
twinaphex 2015-10-24 23:36:42 +02:00
parent 4c47b7c83d
commit e230379fe0

View File

@ -225,10 +225,6 @@ static void zui_finish(zui_t *zui,
if (!gl)
return;
if (!menu_input_mouse_state(MENU_MOUSE_LEFT_BUTTON))
zui->item.active = 0;
else if (zui->item.active == 0)
zui->item.active = -1;
menu_display_draw_frame(
x,
@ -1214,6 +1210,10 @@ static int zarch_iterate(enum menu_action action)
if (perform_action)
ret = menu_entry_action(&entry, zui->entries_selection, act);
if (!menu_input_mouse_state(MENU_MOUSE_LEFT_BUTTON))
zui->item.active = 0;
else if (zui->item.active == 0)
zui->item.active = -1;
if (zui->time_to_exit)
{