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/bubbles.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/bubbles.c')
-rwxr-xr-x | apps/plugins/bubbles.c | 10 |
1 files changed, 8 insertions, 2 deletions
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; |