mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 10:02:45 -05:00
Special code for SIMULATOR because it might return the eyrelease of the shell when starting the simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3076 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c8e0fff99f
commit
d05e8b25e2
1 changed files with 13 additions and 0 deletions
13
apps/tree.c
13
apps/tree.c
|
|
@ -511,8 +511,21 @@ bool ask_resume(void)
|
||||||
#endif
|
#endif
|
||||||
lcd_update();
|
lcd_update();
|
||||||
|
|
||||||
|
#ifdef SIMULATOR
|
||||||
|
{
|
||||||
|
/* Special code for SIMULATOR because it might return the
|
||||||
|
"enter"-keyrelease of the shell when starting the simulator. */
|
||||||
|
unsigned short key;
|
||||||
|
do {
|
||||||
|
key=button_get(true);
|
||||||
|
if (key == BUTTON_PLAY)
|
||||||
|
return true;
|
||||||
|
} while (key & BUTTON_REL);
|
||||||
|
}
|
||||||
|
#else
|
||||||
if (button_get(true) == BUTTON_PLAY)
|
if (button_get(true) == BUTTON_PLAY)
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue