diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2004-10-14 07:48:49 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2004-10-14 07:48:49 +0000 |
| commit | 87ab7a07a660b82f3f9961a4030fb2b7b6212468 (patch) | |
| tree | 49714f0d0369bab4b9da7dda06afacecf93fcb35 /apps/tree.c | |
| parent | ba0a797b16b26413cabc844dbacf10e91d5a2ec7 (diff) | |
| download | rockbox-87ab7a07a660b82f3f9961a4030fb2b7b6212468.zip rockbox-87ab7a07a660b82f3f9961a4030fb2b7b6212468.tar.gz rockbox-87ab7a07a660b82f3f9961a4030fb2b7b6212468.tar.bz2 rockbox-87ab7a07a660b82f3f9961a4030fb2b7b6212468.tar.xz | |
Proper fix for TREE_RUN trailing release event
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5273 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
| -rw-r--r-- | apps/tree.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c index 03c7d2c..1025306 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -868,10 +868,6 @@ static bool dirbrowse(const char *root, const int *dirfilter) button = button_get_w_tmo(HZ/5); - /* ignore leftover release event */ - if (!lastbutton && (button & BUTTON_REL)) - continue; - #ifndef SIMULATOR if (boot_changed) { bool stop = false; @@ -981,6 +977,11 @@ static bool dirbrowse(const char *root, const int *dirfilter) case TREE_RC_ENTER: #endif case TREE_RUN: +#ifdef TREE_RUN_PRE + if ((button == TREE_RUN) && + (lastbutton != TREE_RUN_PRE)) + break; +#endif if ( !numentries ) break; if (currdir[1]) |