menu: support seeking the filelist with letter keys

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@955 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2012-07-22 16:56:25 +00:00
parent 03435ed2c6
commit 134503079f
5 changed files with 68 additions and 37 deletions

View file

@ -1258,13 +1258,13 @@ static void run_events_ui(unsigned int which)
plat_status_msg_busy_first(tmp);
in_set_config_int(0, IN_CFG_BLOCKING, 1);
while (in_menu_wait_any(50) & (PBTN_MA3|PBTN_MBACK))
while (in_menu_wait_any(NULL, 50) & (PBTN_MA3|PBTN_MBACK))
;
while ( !((keys = in_menu_wait_any(50)) & (PBTN_MA3|PBTN_MBACK)) )
while ( !((keys = in_menu_wait_any(NULL, 50)) & (PBTN_MA3|PBTN_MBACK)) )
;
if (keys & PBTN_MBACK)
do_it = 0;
while (in_menu_wait_any(50) & (PBTN_MA3|PBTN_MBACK))
while (in_menu_wait_any(NULL, 50) & (PBTN_MA3|PBTN_MBACK))
;
in_set_config_int(0, IN_CFG_BLOCKING, 0);
}