summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKjell Ericson <kjell@haxx.se>2003-01-13 12:35:59 +0000
committerKjell Ericson <kjell@haxx.se>2003-01-13 12:35:59 +0000
commitd05e8b25e2ece52f2dcc1a5564f9708fb3311c3e (patch)
treec0849b0bd661f5e764e8d86c4d1248c214076a0a /apps
parentc8e0fff99f381df9336382dbd81893925920c731 (diff)
downloadrockbox-d05e8b25e2ece52f2dcc1a5564f9708fb3311c3e.tar.gz
rockbox-d05e8b25e2ece52f2dcc1a5564f9708fb3311c3e.zip
Special code for SIMULATOR because it might return the eyrelease of the shell when starting the simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3076 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index dcaa9558bd..a8d72f4488 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -511,8 +511,21 @@ bool ask_resume(void)
511#endif 511#endif
512 lcd_update(); 512 lcd_update();
513 513
514#ifdef SIMULATOR
515 {
516 /* Special code for SIMULATOR because it might return the
517 "enter"-keyrelease of the shell when starting the simulator. */
518 unsigned short key;
519 do {
520 key=button_get(true);
521 if (key == BUTTON_PLAY)
522 return true;
523 } while (key & BUTTON_REL);
524 }
525#else
514 if (button_get(true) == BUTTON_PLAY) 526 if (button_get(true) == BUTTON_PLAY)
515 return true; 527 return true;
528#endif
516 return false; 529 return false;
517} 530}
518 531