1
0
Fork 0
forked from len0rd/rockbox

The new button handling filtered out the USB_CONNECTED message

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1470 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-07-27 20:55:39 +00:00
parent 1d3e677f63
commit f140b200ba

View file

@ -324,7 +324,7 @@ bool dirbrowse(char *root)
lcd_update(); lcd_update();
button = button_get(true); button = button_get(true);
switch ( button & ~BUTTON_REPEAT) { switch ( button ) {
case TREE_EXIT: case TREE_EXIT:
if ( play_mode == 1 ) if ( play_mode == 1 )
play_mode = 0; play_mode = 0;
@ -410,6 +410,7 @@ bool dirbrowse(char *root)
break; break;
case TREE_PREV: case TREE_PREV:
case TREE_PREV | BUTTON_REPEAT:
if(filesindir) if(filesindir)
{ {
if(dircursor) { if(dircursor) {
@ -445,6 +446,7 @@ bool dirbrowse(char *root)
break; break;
case TREE_NEXT: case TREE_NEXT:
case TREE_NEXT | BUTTON_REPEAT:
if(filesindir) if(filesindir)
{ {
if (dircursor + start + 1 < numentries ) { if (dircursor + start + 1 < numentries ) {