forked from len0rd/rockbox
Moving the keyboard buffer empty routine to pure simulator code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3077 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d05e8b25e2
commit
9b986524c0
2 changed files with 2 additions and 13 deletions
|
@ -77,6 +77,8 @@ void init(void)
|
||||||
global_settings.loudness,
|
global_settings.loudness,
|
||||||
global_settings.bass_boost,
|
global_settings.bass_boost,
|
||||||
global_settings.avc );
|
global_settings.avc );
|
||||||
|
while (button_get(false) != 0)
|
||||||
|
; /* Empty the keyboard buffer */
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
13
apps/tree.c
13
apps/tree.c
|
@ -511,21 +511,8 @@ 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