From 0e027bd90c4f0c2aa42c087a1957b42a58e93270 Mon Sep 17 00:00:00 2001 From: Kevin Ferrare Date: Fri, 30 Jun 2006 16:43:47 +0000 Subject: To avoid having to use the main unit when accidentally launching a plugin from the remote, plugins now support remote quit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10157 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/stopwatch.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/stopwatch.c') diff --git a/apps/plugins/stopwatch.c b/apps/plugins/stopwatch.c index 0aff7e2843..d8204e4082 100644 --- a/apps/plugins/stopwatch.c +++ b/apps/plugins/stopwatch.c @@ -63,6 +63,9 @@ PLUGIN_HEADER #define STOPWATCH_LAP_TIMER BUTTON_ON #define STOPWATCH_SCROLL_UP BUTTON_RIGHT #define STOPWATCH_SCROLL_DOWN BUTTON_LEFT + +#define STOPWATCH_RC_QUIT BUTTON_RC_STOP + #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ (CONFIG_KEYPAD == IPOD_3G_PAD) #define STOPWATCH_QUIT BUTTON_MENU @@ -200,6 +203,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { /* exit */ +#ifdef STOPWATCH_RC_QUIT + case STOPWATCH_RC_QUIT: +#endif case STOPWATCH_QUIT: done = true; break; -- cgit v1.2.3