diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-12-21 00:17:43 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-12-21 00:17:43 +0000 |
commit | d2f0aa492e6e66d10e50243b0e1f708661178733 (patch) | |
tree | 0342b9abb42770e0cc2f09d6f350bcbad743d582 /apps | |
parent | 67f00224fb8bbf92ffe952d163f35ed437b698d5 (diff) |
Solitaire fix for Archos and iPod models
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8269 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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 dict.c #ifdef HAVE_LCD_BITMAP /* Recorder/Ondio models only */ +solitaire.c #ifndef HAVE_LCD_COLOR fire.c plasma.c @@ -44,7 +45,6 @@ sliding_puzzle.c snake.c snake2.c sokoban.c -solitaire.c star.c starfield.c #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; #define SOL_MENU_INFO BUTTON_MODE #define SOL_OPT BUTTON_ON #define SOL_REM BUTTON_REC + +#elif (CONFIG_KEYPAD == IPOD_4G_PAD) +#define SOL_QUIT (BUTTON_SELECT | BUTTON_MENU) +#define SOL_UP BUTTON_MENU +#define SOL_DOWN BUTTON_PLAY +#define SOL_LEFT BUTTON_LEFT +#define SOL_RIGHT BUTTON_RIGHT +#define SOL_MOVE BUTTON_SELECT +#define SOL_DRAW (BUTTON_SELECT | BUTTON_PLAY) +#define SOL_REM2CUR (BUTTON_SELECT | BUTTON_LEFT) +#define SOL_CUR2STACK (BUTTON_SELECT | BUTTON_RIGHT) +#define SOL_REM2STACK (BUTTON_LEFT | BUTTON_RIGHT) +#define SOL_MENU_RUN BUTTON_SELECT +#define SOL_MENU_INFO (BUTTON_PLAY | BUTTON_MENU) + #endif /* common help definitions */ @@ -618,9 +633,12 @@ int solitaire_menu(unsigned char when_n) #endif rb->splash(HZ, true, "Solitaire for Rockbox by dionoea"); break; - case BUTTON_ON: - return MENU_OPT; - case BUTTON_OFF: + +#ifdef SOL_OPT + case SOL_OPT: + return MENU_OPT; +#endif + case SOL_QUIT: return MENU_QUIT; default: |