summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Menes <rmenes@rockbox.org>2010-11-02 20:09:02 +0000
committerRobert Menes <rmenes@rockbox.org>2010-11-02 20:09:02 +0000
commit58369ca292727811eed8f4fc654fbaf75fa70ae3 (patch)
tree35c4c96dcbcefc485af51c57c969d0f81e96f367
parent42973f7a3208cf5999078f769537e46969b0435b (diff)
More plugin keymaps for the HDD6330. Quite a lot of commits. ;)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28450 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/lamp.c4
-rw-r--r--apps/plugins/pegbox.c11
-rw-r--r--apps/plugins/reversi/reversi-gui.h9
-rw-r--r--apps/plugins/snake.c3
-rw-r--r--apps/plugins/snake2.c3
-rw-r--r--apps/plugins/sokoban.c15
-rw-r--r--apps/plugins/star.c16
-rw-r--r--apps/plugins/starfield.c8
8 files changed, 67 insertions, 2 deletions
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c
index 4dffcd06bf..a3f0f189c7 100644
--- a/apps/plugins/lamp.c
+++ b/apps/plugins/lamp.c
@@ -82,6 +82,10 @@
# define LAMP_LEFT BUTTON_LEFT
# define LAMP_RIGHT BUTTON_RIGHT
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+# define LAMP_LEFT BUTTON_LEFT
+# define LAMP_RIGHT BUTTON_RIGHT
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
# define LAMP_LEFT BUTTON_PREV
# define LAMP_RIGHT BUTTON_NEXT
diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c
index 9fa35e3c29..33c1461d85 100644
--- a/apps/plugins/pegbox.c
+++ b/apps/plugins/pegbox.c
@@ -356,6 +356,17 @@
#define LVL_UP_TEXT "VOL+"
#define LVL_DOWN_TEXT "VOL-"
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+#define PEGBOX_SELECT BUTTON_NEXT
+#define PEGBOX_QUIT BUTTON_POWER
+#define PEGBOX_RESTART BUTTON_MENU
+#define PEGBOX_LVL_UP BUTTON_VOL_UP
+#define PEGBOX_LVL_DOWN BUTTON_VOL_DOWN
+#define PEGBOX_UP BUTTON_UP
+#define PEGBOX_DOWN BUTTON_DOWN
+#define PEGBOX_RIGHT BUTTON_RIGHT
+#define PEGBOX_LEFT BUTTON_LEFT
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define PEGBOX_SELECT BUTTON_RIGHT
#define PEGBOX_QUIT BUTTON_POWER
diff --git a/apps/plugins/reversi/reversi-gui.h b/apps/plugins/reversi/reversi-gui.h
index 46d80bc702..ee20c6dbc0 100644
--- a/apps/plugins/reversi/reversi-gui.h
+++ b/apps/plugins/reversi/reversi-gui.h
@@ -182,6 +182,15 @@
#define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT
#define REVERSI_BUTTON_MENU BUTTON_MENU
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+#define REVERSI_BUTTON_QUIT BUTTON_POWER
+#define REVERSI_BUTTON_UP BUTTON_UP
+#define REVERSI_BUTTON_DOWN BUTTON_DOWN
+#define REVERSI_BUTTON_LEFT BUTTON_LEFT
+#define REVERSI_BUTTON_RIGHT BUTTON_RIGHT
+#define REVERSI_BUTTON_MAKE_MOVE BUTTON_PLAY
+#define REVERSI_BUTTON_MENU BUTTON_MENU
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define REVERSI_BUTTON_QUIT BUTTON_POWER
#define REVERSI_BUTTON_UP BUTTON_UP
diff --git a/apps/plugins/snake.c b/apps/plugins/snake.c
index 5ccbcd0b7e..c4bbae0b96 100644
--- a/apps/plugins/snake.c
+++ b/apps/plugins/snake.c
@@ -163,7 +163,8 @@ dir is the current direction of the snake - 0=up, 1=right, 2=down, 3=left;
#define SNAKE_DOWN BUTTON_DOWN
#define SNAKE_PLAYPAUSE BUTTON_PLAY
-#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
+#elif (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \
+ (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD)
#define SNAKE_QUIT BUTTON_POWER
#define SNAKE_LEFT BUTTON_LEFT
#define SNAKE_RIGHT BUTTON_RIGHT
diff --git a/apps/plugins/snake2.c b/apps/plugins/snake2.c
index 99005efc0d..a147f7cd23 100644
--- a/apps/plugins/snake2.c
+++ b/apps/plugins/snake2.c
@@ -276,7 +276,8 @@ Head and Tail are stored
#define SNAKE2_PLAYPAUSE BUTTON_PLAY
#define SNAKE2_PLAYPAUSE_TEXT "Play"
-#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
+#elif (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \
+ (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD)
#define SNAKE2_LEFT BUTTON_LEFT
#define SNAKE2_RIGHT BUTTON_RIGHT
#define SNAKE2_UP BUTTON_UP
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c
index a8f7e34fa7..1d1ded1550 100644
--- a/apps/plugins/sokoban.c
+++ b/apps/plugins/sokoban.c
@@ -387,6 +387,21 @@
#define BUTTON_SAVE BUTTON_PLAYLIST
#define BUTTON_SAVE_NAME "PLAYLIST"
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+#define SOKOBAN_LEFT BUTTON_LEFT
+#define SOKOBAN_RIGHT BUTTON_RIGHT
+#define SOKOBAN_UP BUTTON_UP
+#define SOKOBAN_DOWN BUTTON_DOWN
+#define SOKOBAN_MENU BUTTON_MENU
+#define SOKOBAN_UNDO BUTTON_LEFT
+#define SOKOBAN_REDO (BUTTON_PLAY | BUTTON_PREV)
+#define SOKOBAN_LEVEL_DOWN BUTTON_VOL_DOWN
+#define SOKOBAN_LEVEL_REPEAT BUTTON_POWER
+#define SOKOBAN_LEVEL_UP BUTTON_VOL_UP
+#define SOKOBAN_PAUSE BUTTON_PLAY
+#define BUTTON_SAVE BUTTON_RIGHT
+#define BUTTON_SAVE_NAME "RIGHT"
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define SOKOBAN_LEFT BUTTON_PREV
#define SOKOBAN_RIGHT BUTTON_NEXT
diff --git a/apps/plugins/star.c b/apps/plugins/star.c
index 884c678920..fb4ea7a855 100644
--- a/apps/plugins/star.c
+++ b/apps/plugins/star.c
@@ -327,6 +327,22 @@
#define STAR_LEVEL_DOWN_NAME "VOL DOWN"
#define STAR_LEVEL_REPEAT_NAME "VIEW"
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+
+#define STAR_QUIT BUTTON_POWER
+#define STAR_LEFT BUTTON_LEFT
+#define STAR_RIGHT BUTTON_RIGHT
+#define STAR_UP BUTTON_UP
+#define STAR_DOWN BUTTON_DOWN
+#define STAR_TOGGLE_CONTROL BUTTON_PLAY
+#define STAR_LEVEL_UP BUTTON_VOL_UP
+#define STAR_LEVEL_DOWN BUTTON_VOL_DOWN
+#define STAR_LEVEL_REPEAT BUTTON_NEXT
+#define STAR_QUIT_NAME "POWER"
+#define STAR_LEVEL_UP_NAME "VOL +"
+#define STAR_LEVEL_DOWN_NAME "VOL -"
+#define STAR_LEVEL_REPEAT_NAME "NEXT"
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define STAR_QUIT BUTTON_POWER
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c
index b8b7569205..ace58f0cd9 100644
--- a/apps/plugins/starfield.c
+++ b/apps/plugins/starfield.c
@@ -128,6 +128,14 @@
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
#define STARFIELD_TOGGLE_COLOR BUTTON_SELECT
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+#define STARFIELD_QUIT BUTTON_POWER
+#define STARFIELD_INCREASE_ZMOVE BUTTON_UP
+#define STARFIELD_DECREASE_ZMOVE BUTTON_DOWN
+#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
+#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
+#define STARFIELD_TOGGLE_COLOR BUTTON_PLAY
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define STARFIELD_QUIT BUTTON_POWER
#define STARFIELD_INCREASE_ZMOVE BUTTON_UP