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/minesweeper.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/plugins/minesweeper.c') diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c index bdb6fd70f5..0b4f57106d 100644 --- a/apps/plugins/minesweeper.c +++ b/apps/plugins/minesweeper.c @@ -71,6 +71,8 @@ PLUGIN_HEADER #define MINESWP_RIGHT (BUTTON_ON | BUTTON_RIGHT) #define MINESWP_LEFT (BUTTON_ON | BUTTON_LEFT) +#define MINESWP_RC_QUIT BUTTON_RC_STOP + #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ (CONFIG_KEYPAD == IPOD_3G_PAD) #define MINESWP_UP BUTTON_SCROLL_BACK @@ -506,7 +508,9 @@ int minesweeper(void) case MINESWP_START:/* start playing */ i = 1; break; - +#ifdef MINESWP_RC_QUIT + case MINESWP_RC_QUIT: +#endif case MINESWP_QUIT:/* quit program */ return MINESWEEPER_QUIT; @@ -580,6 +584,9 @@ int minesweeper(void) button = rb->button_get(true); switch(button){ /* quit minesweeper (you really shouldn't use this button ...) */ +#ifdef MINESWP_RC_QUIT + case MINESWP_RC_QUIT: +#endif case MINESWP_QUIT: return MINESWEEPER_QUIT; -- cgit v1.2.3