From 87ab7a07a660b82f3f9961a4030fb2b7b6212468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Thu, 14 Oct 2004 07:48:49 +0000 Subject: Proper fix for TREE_RUN trailing release event git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5273 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/tree.c') 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]) -- cgit v1.1