summaryrefslogtreecommitdiff
path: root/apps/plugins/minesweeper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/minesweeper.c')
-rw-r--r--apps/plugins/minesweeper.c9
1 files changed, 8 insertions, 1 deletions
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
71#define MINESWP_RIGHT (BUTTON_ON | BUTTON_RIGHT) 71#define MINESWP_RIGHT (BUTTON_ON | BUTTON_RIGHT)
72#define MINESWP_LEFT (BUTTON_ON | BUTTON_LEFT) 72#define MINESWP_LEFT (BUTTON_ON | BUTTON_LEFT)
73 73
74#define MINESWP_RC_QUIT BUTTON_RC_STOP
75
74#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ 76#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \
75 (CONFIG_KEYPAD == IPOD_3G_PAD) 77 (CONFIG_KEYPAD == IPOD_3G_PAD)
76#define MINESWP_UP BUTTON_SCROLL_BACK 78#define MINESWP_UP BUTTON_SCROLL_BACK
@@ -506,7 +508,9 @@ int minesweeper(void)
506 case MINESWP_START:/* start playing */ 508 case MINESWP_START:/* start playing */
507 i = 1; 509 i = 1;
508 break; 510 break;
509 511#ifdef MINESWP_RC_QUIT
512 case MINESWP_RC_QUIT:
513#endif
510 case MINESWP_QUIT:/* quit program */ 514 case MINESWP_QUIT:/* quit program */
511 return MINESWEEPER_QUIT; 515 return MINESWEEPER_QUIT;
512 516
@@ -580,6 +584,9 @@ int minesweeper(void)
580 button = rb->button_get(true); 584 button = rb->button_get(true);
581 switch(button){ 585 switch(button){
582 /* quit minesweeper (you really shouldn't use this button ...) */ 586 /* quit minesweeper (you really shouldn't use this button ...) */
587#ifdef MINESWP_RC_QUIT
588 case MINESWP_RC_QUIT:
589#endif
583 case MINESWP_QUIT: 590 case MINESWP_QUIT:
584 return MINESWEEPER_QUIT; 591 return MINESWEEPER_QUIT;
585 592