diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-08-15 16:55:46 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-08-15 16:55:46 +0000 |
commit | 662330eb5de7b7d53519bf6114575b30e1aa48ed (patch) | |
tree | 711aa630a7cec6af2ab7d04ea666ddea65d78a08 /apps | |
parent | 749d87bb20dd3a7a26e33636b0f7a99055f2a68a (diff) | |
download | rockbox-662330eb5de7b7d53519bf6114575b30e1aa48ed.tar.gz rockbox-662330eb5de7b7d53519bf6114575b30e1aa48ed.zip |
Button release filter was a little too effective
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1770 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/wps.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) | |||
391 | int old_release_mask; | 391 | int old_release_mask; |
392 | int button; | 392 | int button; |
393 | int ff_rewind_count = 0; | 393 | int ff_rewind_count = 0; |
394 | bool ignore_keyup; | 394 | bool ignore_keyup = true; |
395 | 395 | ||
396 | old_release_mask = button_set_release(RELEASE_MASK); | 396 | old_release_mask = button_set_release(RELEASE_MASK); |
397 | 397 | ||
@@ -403,7 +403,6 @@ int wps_show(void) | |||
403 | #endif | 403 | #endif |
404 | 404 | ||
405 | ff_rewind = false; | 405 | ff_rewind = false; |
406 | ignore_keyup = true; | ||
407 | 406 | ||
408 | if(mpeg_is_playing()) | 407 | if(mpeg_is_playing()) |
409 | { | 408 | { |
@@ -415,11 +414,12 @@ int wps_show(void) | |||
415 | { | 414 | { |
416 | button = button_get_w_tmo(HZ/5); | 415 | button = button_get_w_tmo(HZ/5); |
417 | 416 | ||
418 | /* Discard stray key-up events */ | 417 | /* discard first event if it's a button release */ |
419 | if(ignore_keyup && (button & BUTTON_REL)) | 418 | if (button && ignore_keyup) |
420 | { | 419 | { |
421 | ignore_keyup = false; | 420 | ignore_keyup = false; |
422 | continue; | 421 | if (button & BUTTON_REL) |
422 | continue; | ||
423 | } | 423 | } |
424 | 424 | ||
425 | if(mpeg_has_changed_track()) | 425 | if(mpeg_has_changed_track()) |