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/flipit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/plugins/flipit.c') diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c index 164949b6dd..4cc7959349 100644 --- a/apps/plugins/flipit.c +++ b/apps/plugins/flipit.c @@ -52,6 +52,8 @@ PLUGIN_HEADER #define FLIPIT_TOGGLE_PRE BUTTON_SELECT #define FLIPIT_TOGGLE (BUTTON_SELECT | BUTTON_REL) +#define FLIPIT_RC_QUIT BUTTON_RC_STOP + #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ (CONFIG_KEYPAD == IPOD_3G_PAD) @@ -336,6 +338,9 @@ static bool flipit_loop(void) { while(true) { button = rb->button_get(true); switch (button) { +#ifdef FLIPIT_RC_QUIT + case FLIPIT_RC_QUIT: +#endif case FLIPIT_QUIT: /* get out of here */ return PLUGIN_OK; -- cgit v1.2.3