summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-27 20:55:39 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-27 20:55:39 +0000
commitf140b200ba4610b7fd33c2acf0c8987868a24cd6 (patch)
treee7cedf0694622ab177ec0dac438d229635341118 /apps
parent1d3e677f63ff78b90e1f59fee32b794f0995488a (diff)
downloadrockbox-f140b200ba4610b7fd33c2acf0c8987868a24cd6.tar.gz
rockbox-f140b200ba4610b7fd33c2acf0c8987868a24cd6.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 57731cbb28..d3aaf294f6 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -324,7 +324,7 @@ bool dirbrowse(char *root)
324 lcd_update(); 324 lcd_update();
325 325
326 button = button_get(true); 326 button = button_get(true);
327 switch ( button & ~BUTTON_REPEAT) { 327 switch ( button ) {
328 case TREE_EXIT: 328 case TREE_EXIT:
329 if ( play_mode == 1 ) 329 if ( play_mode == 1 )
330 play_mode = 0; 330 play_mode = 0;
@@ -410,6 +410,7 @@ bool dirbrowse(char *root)
410 break; 410 break;
411 411
412 case TREE_PREV: 412 case TREE_PREV:
413 case TREE_PREV | BUTTON_REPEAT:
413 if(filesindir) 414 if(filesindir)
414 { 415 {
415 if(dircursor) { 416 if(dircursor) {
@@ -445,6 +446,7 @@ bool dirbrowse(char *root)
445 break; 446 break;
446 447
447 case TREE_NEXT: 448 case TREE_NEXT:
449 case TREE_NEXT | BUTTON_REPEAT:
448 if(filesindir) 450 if(filesindir)
449 { 451 {
450 if (dircursor + start + 1 < numentries ) { 452 if (dircursor + start + 1 < numentries ) {