mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-22 14:37:38 -04:00
only lcd_update() when a key actually was pressed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@288 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8776e03825
commit
5ae04070b4
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ void app_main(void)
|
|||
while(1) {
|
||||
key = button_get();
|
||||
|
||||
if(!key) {
|
||||
sleep(1);
|
||||
continue;
|
||||
}
|
||||
switch(key) {
|
||||
case BUTTON_UP:
|
||||
if(cursor) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue