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/demystify.c | |
parent | 7bbf53eae502417e6e0fbb204e319310f28f33ad (diff) |
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/demystify.c')
-rw-r--r-- | apps/plugins/demystify.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/demystify.c b/apps/plugins/demystify.c index e86482f837..4ebb6496ca 100644 --- a/apps/plugins/demystify.c +++ b/apps/plugins/demystify.c @@ -51,6 +51,10 @@ PLUGIN_HEADER #define DEMYSTIFY_REMOVE_POLYGON BUTTON_DOWN #define DEMYSTIFY_INCREASE_SPEED BUTTON_RIGHT #define DEMYSTIFY_DECREASE_SPEED BUTTON_LEFT +#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ + (CONFIG_KEYPAD == IRIVER_H300_PAD) +#define DEMYSTIFY_RC_QUIT BUTTON_RC_STOP +#endif #endif #define DEFAULT_WAIT_TIME 3 @@ -315,6 +319,9 @@ int plugin_main(void) button = rb->button_get(false); switch(button) { +#ifdef DEMYSTIFY_RC_QUIT + case DEMYSTIFY_RC_QUIT : +#endif case (DEMYSTIFY_QUIT): cleanup(NULL); return PLUGIN_OK; |