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/chessbox | |
parent | 7bbf53eae502417e6e0fbb204e319310f28f33ad (diff) | |
download | rockbox-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/chessbox')
-rw-r--r-- | apps/plugins/chessbox/chessbox.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 | |||
73 | #define CB_RESTART BUTTON_REC | 73 | #define CB_RESTART BUTTON_REC |
74 | #define CB_QUIT BUTTON_OFF | 74 | #define CB_QUIT BUTTON_OFF |
75 | 75 | ||
76 | #define CB_RC_QUIT BUTTON_RC_STOP | ||
77 | |||
76 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD | 78 | #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD |
77 | #define CB_SELECT BUTTON_SELECT | 79 | #define CB_SELECT BUTTON_SELECT |
78 | #define CB_UP BUTTON_UP | 80 | #define CB_UP BUTTON_UP |
@@ -280,6 +282,9 @@ void cb_wt_callback ( void ) { | |||
280 | wt_command = COMMAND_NOP; | 282 | wt_command = COMMAND_NOP; |
281 | button = rb->button_get(false); | 283 | button = rb->button_get(false); |
282 | switch (button) { | 284 | switch (button) { |
285 | #ifdef CB_RC_QUIT | ||
286 | case CB_RC_QUIT: | ||
287 | #endif | ||
283 | case CB_QUIT: | 288 | case CB_QUIT: |
284 | wt_command = COMMAND_QUIT; | 289 | wt_command = COMMAND_QUIT; |
285 | timeout = true; | 290 | timeout = true; |
@@ -486,6 +491,9 @@ struct cb_command cb_getcommand (void) { | |||
486 | while ( true ) { | 491 | while ( true ) { |
487 | button = rb->button_get(true); | 492 | button = rb->button_get(true); |
488 | switch (button) { | 493 | switch (button) { |
494 | #ifdef CB_RC_QUIT | ||
495 | case CB_RC_QUIT: | ||
496 | #endif | ||
489 | case CB_QUIT: | 497 | case CB_QUIT: |
490 | result.type = COMMAND_QUIT; | 498 | result.type = COMMAND_QUIT; |
491 | return result; | 499 | return result; |