mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-23 06:57:40 -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) {
|
while(1) {
|
||||||
key = button_get();
|
key = button_get();
|
||||||
|
|
||||||
|
if(!key) {
|
||||||
|
sleep(1);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
switch(key) {
|
switch(key) {
|
||||||
case BUTTON_UP:
|
case BUTTON_UP:
|
||||||
if(cursor) {
|
if(cursor) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue