diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-04-28 00:18:27 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-28 00:18:27 +0000 |
| commit | 5ae04070b4b3e2996ce55ab83239ada0ee10cecd (patch) | |
| tree | c5084f526c863f690052556d879f4cf440dee2ba | |
| parent | 8776e03825f3e790b6c170de8666823099d839f2 (diff) | |
| download | rockbox-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
| -rw-r--r-- | uisimulator/app.c | 4 |
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) { |