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/bubbles.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'apps/plugins/bubbles.c') diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index 05e618e525..f2676f7ff1 100755 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c @@ -64,6 +64,8 @@ PLUGIN_HEADER #define BUBBLES_SELECT BUTTON_SELECT #define BUBBLES_RESUME BUTTON_MODE +#define BUBBLES_RC_QUIT BUTTON_RC_STOP + #elif (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) #define BUBBLES_LEFT BUTTON_SCROLL_BACK #define BUBBLES_RIGHT BUTTON_SCROLL_FWD @@ -2407,7 +2409,9 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock, return BB_END; } break; - +#ifdef BUBBLES_RC_QUIT + case BUBBLES_RC_QUIT: +#endif case BUBBLES_QUIT: /* end the game */ return BB_END; @@ -2534,7 +2538,9 @@ static int bubbles(struct game_context* bb) { bb->level = startlevel; startgame = true; break; - +#ifdef BUBBLES_RC_QUIT + case BUBBLES_RC_QUIT: +#endif case BUBBLES_QUIT: /* quit program */ if(showscores) { showscores = false; -- cgit v1.2.3