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/solitaire.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'apps/plugins/solitaire.c') diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 45d56950ec..56990beeb3 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c @@ -109,6 +109,8 @@ static struct plugin_api* rb; #define SOL_OPT BUTTON_ON #define SOL_REM BUTTON_REC +#define SOL_RC_QUIT BUTTON_RC_STOP + #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ (CONFIG_KEYPAD == IPOD_3G_PAD) #define SOL_QUIT (BUTTON_SELECT | BUTTON_MENU) @@ -463,7 +465,9 @@ int solitaire_help(void){ #endif rb->splash(HZ*2, true, HELP_SOL_REM2CUR); break; - +#ifdef SOL_RC_QUIT + case SOL_RC_QUIT: +#endif case SOL_QUIT: return HELP_QUIT; @@ -600,6 +604,10 @@ int solitaire_menu(unsigned char when_n) case SOL_OPT: return MENU_OPT; #endif + +#ifdef SOL_RC_QUIT + case SOL_RC_QUIT: +#endif case SOL_QUIT: return MENU_QUIT; @@ -1460,6 +1468,9 @@ int solitaire(void){ break; /* Show the menu */ +#ifdef SOL_RC_QUIT + case SOL_RC_QUIT: +#endif case SOL_QUIT: #if LCD_DEPTH>1 rb->lcd_set_background(LCD_DEFAULT_BG); -- cgit v1.2.3