summaryrefslogtreecommitdiff
path: root/apps/plugins/sokoban.c
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2011-11-16 14:08:01 +0000
committerTomasz Moń <desowin@gmail.com>2011-11-16 14:08:01 +0000
commite8a8a1be43afe63079ae48ce1a9eb3052df3b1a4 (patch)
tree084e1cdf27a339ce58e24cff8fec8c31432b52db /apps/plugins/sokoban.c
parent992d4eb775cac48e107e18d72783ebfb39c4234f (diff)
downloadrockbox-e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4.tar.gz
rockbox-e8a8a1be43afe63079ae48ce1a9eb3052df3b1a4.zip
Sandisk Sansa Connect port (FS #12363)
Included are drivers for buttons, backlight, lcd, audio and storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r--apps/plugins/sokoban.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index c5ba706047..ddc95290da 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -511,6 +511,21 @@
511#define BUTTON_SAVE (BUTTON_SELECT|BUTTON_REPEAT) 511#define BUTTON_SAVE (BUTTON_SELECT|BUTTON_REPEAT)
512#define BUTTON_SAVE_NAME "SELECT LONG" 512#define BUTTON_SAVE_NAME "SELECT LONG"
513 513
514#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
515#define SOKOBAN_LEFT BUTTON_LEFT
516#define SOKOBAN_RIGHT BUTTON_RIGHT
517#define SOKOBAN_UP BUTTON_UP
518#define SOKOBAN_DOWN BUTTON_DOWN
519#define SOKOBAN_MENU BUTTON_POWER
520#define SOKOBAN_UNDO BUTTON_PREV
521#define SOKOBAN_REDO BUTTON_NEXT
522#define SOKOBAN_LEVEL_DOWN BUTTON_VOL_DOWN
523#define SOKOBAN_LEVEL_REPEAT (BUTTON_NEXT|BUTTON_PREV)
524#define SOKOBAN_LEVEL_UP BUTTON_VOL_UP
525#define SOKOBAN_PAUSE BUTTON_SELECT
526#define BUTTON_SAVE (BUTTON_SELECT|BUTTON_REPEAT)
527#define BUTTON_SAVE_NAME "SELECT LONG"
528
514#else 529#else
515#error No keymap defined! 530#error No keymap defined!
516#endif 531#endif
@@ -1487,6 +1502,13 @@ static int sokoban_menu(void)
1487 rb->lcd_putsxy(3, 36, "[PREV] Previous Level"); 1502 rb->lcd_putsxy(3, 36, "[PREV] Previous Level");
1488 rb->lcd_putsxy(3, 46, "[PLAY] Restart Level"); 1503 rb->lcd_putsxy(3, 46, "[PLAY] Restart Level");
1489 rb->lcd_putsxy(3, 56, "[NEXT] Next Level"); 1504 rb->lcd_putsxy(3, 56, "[NEXT] Next Level");
1505#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
1506 rb->lcd_putsxy(3, 6, "[POWER] Menu");
1507 rb->lcd_putsxy(3, 16, "[PREV] Undo");
1508 rb->lcd_putsxy(3, 26, "[NEXT] Redo");
1509 rb->lcd_putsxy(3, 36, "[VOL-] Previous Level");
1510 rb->lcd_putsxy(3, 46, "[NEXT+PREV] Restart Level");
1511 rb->lcd_putsxy(3, 56, "[VOL+] Next Level");
1490#endif 1512#endif
1491 1513
1492#ifdef HAVE_TOUCHSCREEN 1514#ifdef HAVE_TOUCHSCREEN