diff options
Diffstat (limited to 'apps/plugins/chessbox/chessbox.c')
-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; |