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:
parent
1d3e677f63
commit
f140b200ba
1 changed files with 3 additions and 1 deletions
|
@ -324,7 +324,7 @@ bool dirbrowse(char *root)
|
|||
lcd_update();
|
||||
|
||||
button = button_get(true);
|
||||
switch ( button & ~BUTTON_REPEAT) {
|
||||
switch ( button ) {
|
||||
case TREE_EXIT:
|
||||
if ( play_mode == 1 )
|
||||
play_mode = 0;
|
||||
|
@ -410,6 +410,7 @@ bool dirbrowse(char *root)
|
|||
break;
|
||||
|
||||
case TREE_PREV:
|
||||
case TREE_PREV | BUTTON_REPEAT:
|
||||
if(filesindir)
|
||||
{
|
||||
if(dircursor) {
|
||||
|
@ -445,6 +446,7 @@ bool dirbrowse(char *root)
|
|||
break;
|
||||
|
||||
case TREE_NEXT:
|
||||
case TREE_NEXT | BUTTON_REPEAT:
|
||||
if(filesindir)
|
||||
{
|
||||
if (dircursor + start + 1 < numentries ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue