From 5ae04070b4b3e2996ce55ab83239ada0ee10cecd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 28 Apr 2002 00:18:27 +0000 Subject: [PATCH] only lcd_update() when a key actually was pressed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@288 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/app.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uisimulator/app.c b/uisimulator/app.c index 9df7863c78..fdef22b6cb 100644 --- a/uisimulator/app.c +++ b/uisimulator/app.c @@ -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) {