From d05e8b25e2ece52f2dcc1a5564f9708fb3311c3e Mon Sep 17 00:00:00 2001 From: Kjell Ericson Date: Mon, 13 Jan 2003 12:35:59 +0000 Subject: 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 --- apps/tree.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps') 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) #endif lcd_update(); +#ifdef SIMULATOR + { + /* Special code for SIMULATOR because it might return the + "enter"-keyrelease of the shell when starting the simulator. */ + unsigned short key; + do { + key=button_get(true); + if (key == BUTTON_PLAY) + return true; + } while (key & BUTTON_REL); + } +#else if (button_get(true) == BUTTON_PLAY) return true; +#endif return false; } -- cgit v1.2.3