summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2006-06-30 16:43:47 +0000
committerKevin Ferrare <kevin@rockbox.org>2006-06-30 16:43:47 +0000
commit0e027bd90c4f0c2aa42c087a1957b42a58e93270 (patch)
treed21b7009fb818c907fcfc2268f1b9a12fd9263de /apps/plugins/bubbles.c
parent7bbf53eae502417e6e0fbb204e319310f28f33ad (diff)
downloadrockbox-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/bubbles.c')
-rwxr-xr-xapps/plugins/bubbles.c10
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
64#define BUBBLES_SELECT BUTTON_SELECT 64#define BUBBLES_SELECT BUTTON_SELECT
65#define BUBBLES_RESUME BUTTON_MODE 65#define BUBBLES_RESUME BUTTON_MODE
66 66
67#define BUBBLES_RC_QUIT BUTTON_RC_STOP
68
67#elif (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) 69#elif (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD)
68#define BUBBLES_LEFT BUTTON_SCROLL_BACK 70#define BUBBLES_LEFT BUTTON_SCROLL_BACK
69#define BUBBLES_RIGHT BUTTON_SCROLL_FWD 71#define BUBBLES_RIGHT BUTTON_SCROLL_FWD
@@ -2407,7 +2409,9 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock,
2407 return BB_END; 2409 return BB_END;
2408 } 2410 }
2409 break; 2411 break;
2410 2412#ifdef BUBBLES_RC_QUIT
2413 case BUBBLES_RC_QUIT:
2414#endif
2411 case BUBBLES_QUIT: /* end the game */ 2415 case BUBBLES_QUIT: /* end the game */
2412 return BB_END; 2416 return BB_END;
2413 2417
@@ -2534,7 +2538,9 @@ static int bubbles(struct game_context* bb) {
2534 bb->level = startlevel; 2538 bb->level = startlevel;
2535 startgame = true; 2539 startgame = true;
2536 break; 2540 break;
2537 2541#ifdef BUBBLES_RC_QUIT
2542 case BUBBLES_RC_QUIT:
2543#endif
2538 case BUBBLES_QUIT: /* quit program */ 2544 case BUBBLES_QUIT: /* quit program */
2539 if(showscores) { 2545 if(showscores) {
2540 showscores = false; 2546 showscores = false;