diff options
| -rw-r--r-- | apps/tree.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index dcaa955..a8d72f4 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; } |