forked from len0rd/rockbox
Ignore repeat button events in the shutdown confirmation screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4949 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0c01305eb9
commit
b73caf745f
1 changed files with 4 additions and 2 deletions
|
|
@ -1115,8 +1115,10 @@ bool shutdown_screen(void)
|
|||
/* Return if any other button was pushed, or if there
|
||||
was a timeout. We ignore RELEASE events, since we may
|
||||
have been called by a button down event, and the user might
|
||||
not have released the button yet. */
|
||||
if(!(button & BUTTON_REL))
|
||||
not have released the button yet.
|
||||
We also ignore REPEAT events, since we don't want to
|
||||
remove the splash when the user holds OFF to shut down. */
|
||||
if(!(button & (BUTTON_REL | BUTTON_REPEAT)))
|
||||
done = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue