summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-28 00:18:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-28 00:18:27 +0000
commit5ae04070b4b3e2996ce55ab83239ada0ee10cecd (patch)
treec5084f526c863f690052556d879f4cf440dee2ba /uisimulator
parent8776e03825f3e790b6c170de8666823099d839f2 (diff)
downloadrockbox-5ae04070b4b3e2996ce55ab83239ada0ee10cecd.zip
rockbox-5ae04070b4b3e2996ce55ab83239ada0ee10cecd.tar.gz
rockbox-5ae04070b4b3e2996ce55ab83239ada0ee10cecd.tar.bz2
rockbox-5ae04070b4b3e2996ce55ab83239ada0ee10cecd.tar.xz
only lcd_update() when a key actually was pressed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@288 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/app.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/app.c b/uisimulator/app.c
index 9df7863..fdef22b 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) {