From 662330eb5de7b7d53519bf6114575b30e1aa48ed Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 15 Aug 2002 16:55:46 +0000 Subject: Button release filter was a little too effective git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1770 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps') diff --git a/apps/wps.c b/apps/wps.c index 4348819799..72c4b5c993 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()) -- cgit v1.2.3