summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-08-15 16:55:46 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-08-15 16:55:46 +0000
commit662330eb5de7b7d53519bf6114575b30e1aa48ed (patch)
tree711aa630a7cec6af2ab7d04ea666ddea65d78a08
parent749d87bb20dd3a7a26e33636b0f7a99055f2a68a (diff)
downloadrockbox-662330eb5de7b7d53519bf6114575b30e1aa48ed.zip
rockbox-662330eb5de7b7d53519bf6114575b30e1aa48ed.tar.gz
rockbox-662330eb5de7b7d53519bf6114575b30e1aa48ed.tar.bz2
rockbox-662330eb5de7b7d53519bf6114575b30e1aa48ed.tar.xz
Button release filter was a little too effective
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1770 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 4348819..72c4b5c 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -391,7 +391,7 @@ int wps_show(void)
int old_release_mask;
int button;
int ff_rewind_count = 0;
- bool ignore_keyup;
+ bool ignore_keyup = true;
old_release_mask = button_set_release(RELEASE_MASK);
@@ -403,7 +403,6 @@ int wps_show(void)
#endif
ff_rewind = false;
- ignore_keyup = true;
if(mpeg_is_playing())
{
@@ -415,11 +414,12 @@ int wps_show(void)
{
button = button_get_w_tmo(HZ/5);
- /* Discard stray key-up events */
- if(ignore_keyup && (button & BUTTON_REL))
+ /* discard first event if it's a button release */
+ if (button && ignore_keyup)
{
ignore_keyup = false;
- continue;
+ if (button & BUTTON_REL)
+ continue;
}
if(mpeg_has_changed_track())