diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/SOURCES | 2 | ||||
-rw-r--r-- | apps/plugins/solitaire.c | 24 |
2 files changed, 22 insertions, 4 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index 057d5a6a35..2f02506912 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES | |||
@@ -18,6 +18,7 @@ viewer.c | |||
18 | dict.c | 18 | dict.c |
19 | 19 | ||
20 | #ifdef HAVE_LCD_BITMAP /* Recorder/Ondio models only */ | 20 | #ifdef HAVE_LCD_BITMAP /* Recorder/Ondio models only */ |
21 | solitaire.c | ||
21 | #ifndef HAVE_LCD_COLOR | 22 | #ifndef HAVE_LCD_COLOR |
22 | fire.c | 23 | fire.c |
23 | plasma.c | 24 | plasma.c |
@@ -44,7 +45,6 @@ sliding_puzzle.c | |||
44 | snake.c | 45 | snake.c |
45 | snake2.c | 46 | snake2.c |
46 | sokoban.c | 47 | sokoban.c |
47 | solitaire.c | ||
48 | star.c | 48 | star.c |
49 | starfield.c | 49 | starfield.c |
50 | #if (LCD_WIDTH != 176) | 50 | #if (LCD_WIDTH != 176) |
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c index 306c0dcc8d..22cd20c755 100644 --- a/apps/plugins/solitaire.c +++ b/apps/plugins/solitaire.c | |||
@@ -106,6 +106,21 @@ static struct plugin_api* rb; | |||
106 | #define SOL_MENU_INFO BUTTON_MODE | 106 | #define SOL_MENU_INFO BUTTON_MODE |
107 | #define SOL_OPT BUTTON_ON | 107 | #define SOL_OPT BUTTON_ON |
108 | #define SOL_REM BUTTON_REC | 108 | #define SOL_REM BUTTON_REC |
109 | |||
110 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) | ||
111 | #define SOL_QUIT (BUTTON_SELECT | BUTTON_MENU) | ||
112 | #define SOL_UP BUTTON_MENU | ||
113 | #define SOL_DOWN BUTTON_PLAY | ||
114 | #define SOL_LEFT BUTTON_LEFT | ||
115 | #define SOL_RIGHT BUTTON_RIGHT | ||
116 | #define SOL_MOVE BUTTON_SELECT | ||
117 | #define SOL_DRAW (BUTTON_SELECT | BUTTON_PLAY) | ||
118 | #define SOL_REM2CUR (BUTTON_SELECT | BUTTON_LEFT) | ||
119 | #define SOL_CUR2STACK (BUTTON_SELECT | BUTTON_RIGHT) | ||
120 | #define SOL_REM2STACK (BUTTON_LEFT | BUTTON_RIGHT) | ||
121 | #define SOL_MENU_RUN BUTTON_SELECT | ||
122 | #define SOL_MENU_INFO (BUTTON_PLAY | BUTTON_MENU) | ||
123 | |||
109 | #endif | 124 | #endif |
110 | 125 | ||
111 | /* common help definitions */ | 126 | /* common help definitions */ |
@@ -618,9 +633,12 @@ int solitaire_menu(unsigned char when_n) | |||
618 | #endif | 633 | #endif |
619 | rb->splash(HZ, true, "Solitaire for Rockbox by dionoea"); | 634 | rb->splash(HZ, true, "Solitaire for Rockbox by dionoea"); |
620 | break; | 635 | break; |
621 | case BUTTON_ON: | 636 | |
622 | return MENU_OPT; | 637 | #ifdef SOL_OPT |
623 | case BUTTON_OFF: | 638 | case SOL_OPT: |
639 | return MENU_OPT; | ||
640 | #endif | ||
641 | case SOL_QUIT: | ||
624 | return MENU_QUIT; | 642 | return MENU_QUIT; |
625 | 643 | ||
626 | default: | 644 | default: |