From: notaz Date: Fri, 28 Aug 2009 22:09:32 +0000 (+0000) Subject: fix ROM selector annoyance X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0e9248c33621e1cc8edff5309f38f347cbb9934;p=libpicofe.git fix ROM selector annoyance git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@766 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/common/menu.c b/common/menu.c index 08117df..e651694 100644 --- a/common/menu.c +++ b/common/menu.c @@ -814,6 +814,11 @@ rescan: } } + /* make sure action buttons are not pressed on entering menu */ + draw_dirlist(curr_path, namelist, n, sel); + while (in_menu_wait_any(50) & (PBTN_MOK|PBTN_MBACK|PBTN_MENU)) + ; + for (;;) { draw_dirlist(curr_path, namelist, n, sel); @@ -1945,7 +1950,8 @@ void menu_loop(void) if (engineState == PGS_Menu) engineState = PGS_Running; /* wait until menu, ok, back is released */ - while (in_menu_wait_any(50) & (PBTN_MENU|PBTN_MOK|PBTN_MBACK)); + while (in_menu_wait_any(50) & (PBTN_MENU|PBTN_MOK|PBTN_MBACK)) + ; } in_set_blocking(0);