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/chessbox/chessbox.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/plugins/chessbox') diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c index edebbf234b..5f2ed9a467 100644 --- a/apps/plugins/chessbox/chessbox.c +++ b/apps/plugins/chessbox/chessbox.c @@ -73,6 +73,8 @@ PLUGIN_HEADER #define CB_RESTART BUTTON_REC #define CB_QUIT BUTTON_OFF +#define CB_RC_QUIT BUTTON_RC_STOP + #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD #define CB_SELECT BUTTON_SELECT #define CB_UP BUTTON_UP @@ -280,6 +282,9 @@ void cb_wt_callback ( void ) { wt_command = COMMAND_NOP; button = rb->button_get(false); switch (button) { +#ifdef CB_RC_QUIT + case CB_RC_QUIT: +#endif case CB_QUIT: wt_command = COMMAND_QUIT; timeout = true; @@ -486,6 +491,9 @@ struct cb_command cb_getcommand (void) { while ( true ) { button = rb->button_get(true); switch (button) { +#ifdef CB_RC_QUIT + case CB_RC_QUIT: +#endif case CB_QUIT: result.type = COMMAND_QUIT; return result; -- cgit v1.2.3