From 6c33c51a4ca9907d23e3154d956fd6781122f492 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Sun, 19 Sep 2004 21:58:37 +0000 Subject: Redesigned the button handling. The code now uses symbolic function defines instead of checking for specific buttons. This makes it easier to add support for new devices with different button layouts. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5091 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index fc84386d56..ced0668ae6 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -16,6 +16,7 @@ * KIND, either express or implied. * ****************************************************************************/ +#include #include #include "lang.h" #include "string.h" @@ -206,7 +207,9 @@ bool settings_parseline(char* line, char** name, char** value) bool clean_shutdown(void) { -#ifndef SIMULATOR +#ifdef SIMULATOR + exit(0); +#else if(!charger_inserted()) { lcd_clear_display(); -- cgit v1.2.3