1
0
Fork 0
forked from len0rd/rockbox

Now discards stray BUTTON_REL events

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1750 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-08-15 07:35:16 +00:00
parent e2a9fe1943
commit b3a3885a0e

View file

@ -391,6 +391,7 @@ int wps_show(void)
int old_release_mask;
int button;
int ff_rewind_count = 0;
bool ignore_keyup;
old_release_mask = button_set_release(RELEASE_MASK);
@ -401,6 +402,9 @@ int wps_show(void)
lcd_setmargins(0,0);
#endif
ff_rewind = false;
ignore_keyup = true;
if(mpeg_is_playing())
{
id3 = mpeg_current_track();
@ -411,6 +415,13 @@ int wps_show(void)
{
button = button_get_w_tmo(HZ/5);
/* Discard stray key-up events */
if(ignore_keyup && (button & BUTTON_REL))
{
ignore_keyup = false;
continue;
}
if(mpeg_has_changed_track())
{
lcd_stop_scroll();
@ -755,6 +766,7 @@ int wps_show(void)
statusbar(laststate);
#endif
old_release_mask = button_set_release(RELEASE_MASK);
ignore_keyup = true;
id3 = mpeg_current_track();
draw_screen(id3);
}