diff options
author | Kevin Ferrare <kevin@rockbox.org> | 2006-06-30 16:43:47 +0000 |
---|---|---|
committer | Kevin Ferrare <kevin@rockbox.org> | 2006-06-30 16:43:47 +0000 |
commit | 0e027bd90c4f0c2aa42c087a1957b42a58e93270 (patch) | |
tree | d21b7009fb818c907fcfc2268f1b9a12fd9263de /apps/plugins/stopwatch.c | |
parent | 7bbf53eae502417e6e0fbb204e319310f28f33ad (diff) | |
download | rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.tar.gz rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.zip |
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
Diffstat (limited to 'apps/plugins/stopwatch.c')
-rw-r--r-- | apps/plugins/stopwatch.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
63 | #define STOPWATCH_LAP_TIMER BUTTON_ON | 63 | #define STOPWATCH_LAP_TIMER BUTTON_ON |
64 | #define STOPWATCH_SCROLL_UP BUTTON_RIGHT | 64 | #define STOPWATCH_SCROLL_UP BUTTON_RIGHT |
65 | #define STOPWATCH_SCROLL_DOWN BUTTON_LEFT | 65 | #define STOPWATCH_SCROLL_DOWN BUTTON_LEFT |
66 | |||
67 | #define STOPWATCH_RC_QUIT BUTTON_RC_STOP | ||
68 | |||
66 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | 69 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ |
67 | (CONFIG_KEYPAD == IPOD_3G_PAD) | 70 | (CONFIG_KEYPAD == IPOD_3G_PAD) |
68 | #define STOPWATCH_QUIT BUTTON_MENU | 71 | #define STOPWATCH_QUIT BUTTON_MENU |
@@ -200,6 +203,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
200 | { | 203 | { |
201 | 204 | ||
202 | /* exit */ | 205 | /* exit */ |
206 | #ifdef STOPWATCH_RC_QUIT | ||
207 | case STOPWATCH_RC_QUIT: | ||
208 | #endif | ||
203 | case STOPWATCH_QUIT: | 209 | case STOPWATCH_QUIT: |
204 | done = true; | 210 | done = true; |
205 | break; | 211 | break; |