forked from len0rd/rockbox
Button release filter was a little too effective
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1770 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
749d87bb20
commit
662330eb5d
1 changed files with 5 additions and 5 deletions
10
apps/wps.c
10
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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue