diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-25 16:22:38 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-25 16:22:38 +0000 |
| commit | 320ef3e4d83a25946320fe380bac409f99d67540 (patch) | |
| tree | e63b14ddb0f250d797d2f2e5aac4e0663432fbc0 /apps | |
| parent | da7177749afc221b533e6db45aa9720fe907eab8 (diff) | |
| download | rockbox-320ef3e4d83a25946320fe380bac409f99d67540.zip rockbox-320ef3e4d83a25946320fe380bac409f99d67540.tar.gz rockbox-320ef3e4d83a25946320fe380bac409f99d67540.tar.bz2 rockbox-320ef3e4d83a25946320fe380bac409f99d67540.tar.xz | |
ask_resume() now only reacts on button release events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4944 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/tree.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index 1faadf6..b915b39 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -591,6 +591,7 @@ static int showdir(char *path, int start, int *dirfilter) static bool ask_resume(bool ask_once) { + int button; bool stop = false; #ifdef HAVE_LCD_CHARCELLS @@ -618,7 +619,8 @@ static bool ask_resume(bool ask_once) lcd_update(); while (!stop) { - switch (button_get(true)) { + button = button_get(true); + switch (button) { case BUTTON_PLAY: #ifdef BUTTON_RC_PLAY case BUTTON_RC_PLAY: @@ -640,7 +642,9 @@ static bool ask_resume(bool ask_once) break; default: - stop = true; + /* React only on release events */ + if(button & BUTTON_REL) + stop = true; break; } } |