summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorRobert Menes <rmenes@rockbox.org>2010-11-02 10:58:08 +0000
committerRobert Menes <rmenes@rockbox.org>2010-11-02 10:58:08 +0000
commit450a4e438085972eaffe94b706c427fafced822c (patch)
treea08ff30b5c35ece187bffbfe0f5b3b707383abaa /apps/plugins
parent650a2941fdb02e2c8379ea25e4bf1b6154e660c4 (diff)
Commit a few more GoGear HDD6330 keymaps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28445 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/beatbox/beatbox.c18
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.h10
-rw-r--r--apps/plugins/cube.c10
-rw-r--r--apps/plugins/lib/pluginlib_actions.c6
-rw-r--r--apps/plugins/pacbox/pacbox.h11
-rw-r--r--apps/plugins/superdom.c8
6 files changed, 61 insertions, 2 deletions
diff --git a/apps/plugins/beatbox/beatbox.c b/apps/plugins/beatbox/beatbox.c
index 34c72570e3..b09464ab14 100644
--- a/apps/plugins/beatbox/beatbox.c
+++ b/apps/plugins/beatbox/beatbox.c
@@ -81,6 +81,24 @@
#define BTN_UP BUTTON_SCROLL_UP
#define BTN_DOWN BUTTON_SCROLL_DOWN
+#elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
+#define BTN_QUIT BUTTON_POWER
+#define BTN_RIGHT BUTTON_RIGHT
+#define BTN_UP BUTTON_UP
+#define BTN_DOWN BUTTON_DOWN
+
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+#define BTN_QUIT BUTTON_POWER
+#define BTN_RIGHT BUTTON_NEXT
+#define BTN_UP BUTTON_UP
+#define BTN_DOWN BUTTON_DOWN
+
+#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
+#define BTN_QUIT BUTTON_POWER
+#define BTN_RIGHT BUTTON_NEXT
+#define BTN_UP BUTTON_UP
+#define BTN_DOWN BUTTON_DOWN
+
#elif CONFIG_KEYPAD == SAMSUNG_YH_PAD
#define BTN_QUIT BUTTON_PLAY
#define BTN_RIGHT BUTTON_RIGHT
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h
index 2ae27e901f..df90151522 100644
--- a/apps/plugins/chessbox/chessbox_pgn.h
+++ b/apps/plugins/chessbox/chessbox_pgn.h
@@ -323,6 +323,16 @@
#define CB_LEVEL BUTTON_PLAYLIST
#define CB_MENU BUTTON_MENU
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+#define CB_SELECT BUTTON_PLAY
+#define CB_UP BUTTON_UP
+#define CB_DOWN BUTTON_DOWN
+#define CB_LEFT BUTTON_PREV
+#define CB_RIGHT BUTTON_NEXT
+#define CB_PLAY BUTTON_RIGHT
+#define CB_LEVEL BUTTON_LEFT
+#define CB_MENU BUTTON_MENU
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define CB_SELECT BUTTON_PLAY
#define CB_UP BUTTON_UP
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 3fafab05b8..0555bc5e37 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -244,6 +244,16 @@
#define CUBE_PAUSE BUTTON_SELECT
#define CUBE_HIGHSPEED BUTTON_VIEW
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+#define CUBE_QUIT BUTTON_POWER
+#define CUBE_NEXT BUTTON_NEXT
+#define CUBE_PREV BUTTON_PREV
+#define CUBE_INC BUTTON_UP
+#define CUBE_DEC BUTTON_DOWN
+#define CUBE_MODE BUTTON_MENU
+#define CUBE_PAUSE BUTTON_PLAY
+#define CUBE_HIGHSPEED BUTTON_RIGHT
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define CUBE_QUIT BUTTON_POWER
#define CUBE_NEXT BUTTON_NEXT
diff --git a/apps/plugins/lib/pluginlib_actions.c b/apps/plugins/lib/pluginlib_actions.c
index ee052c5060..0d95bc8d87 100644
--- a/apps/plugins/lib/pluginlib_actions.c
+++ b/apps/plugins/lib/pluginlib_actions.c
@@ -163,7 +163,8 @@ const struct button_mapping pla_main_ctx[] =
{ PLA_DOWN_REPEAT, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE },
{ PLA_LEFT_REPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
{ PLA_RIGHT_REPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
-#elif (CONFIG_KEYPAD == PHILIPS_SA9200_PAD)
+#elif (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) \
+ || (CONFIG_KEYPAD == PHILIPS_SA9200_PAD)
{ PLA_UP, BUTTON_UP, BUTTON_NONE },
{ PLA_DOWN, BUTTON_DOWN, BUTTON_NONE },
{ PLA_LEFT, BUTTON_PREV, BUTTON_NONE },
@@ -322,7 +323,8 @@ const struct button_mapping pla_main_ctx[] =
{PLA_SELECT, BUTTON_RC_MODE, BUTTON_NONE},
{PLA_SELECT_REL, BUTTON_RC_MODE|BUTTON_REL, BUTTON_RC_MODE},
{PLA_SELECT_REPEAT, BUTTON_RC_MODE|BUTTON_REPEAT, BUTTON_NONE},
-#elif (CONFIG_KEYPAD == PHILIPS_SA9200_PAD)
+#elif (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) \
+ || (CONFIG_KEYPAD == PHILIPS_SA9200_PAD)
{PLA_EXIT, BUTTON_POWER, BUTTON_NONE},
{PLA_CANCEL, BUTTON_MENU, BUTTON_NONE},
{PLA_SELECT, BUTTON_PLAY, BUTTON_NONE},
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index f4cc738b02..a15aef7a10 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -192,6 +192,17 @@
#define PACMAN_COIN BUTTON_VIEW
#define PACMAN_MENU BUTTON_MENU
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+
+#define PACMAN_UP BUTTON_NEXT
+#define PACMAN_DOWN BUTTON_PREV
+#define PACMAN_LEFT BUTTON_UP
+#define PACMAN_RIGHT BUTTON_DOWN
+#define PACMAN_1UP BUTTON_VOL_UP
+#define PACMAN_2UP BUTTON_DOWN
+#define PACMAN_COIN BUTTON_RIGHT
+#define PACMAN_MENU BUTTON_MENU
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define PACMAN_UP BUTTON_UP
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c
index ad54c565b2..f4cefdfa4e 100644
--- a/apps/plugins/superdom.c
+++ b/apps/plugins/superdom.c
@@ -139,6 +139,14 @@ char buf[255];
#define SUPERDOM_RIGHT BUTTON_RIGHT
#define SUPERDOM_CANCEL BUTTON_BACK
+#elif CONFIG_KEYPAD == PHILIPS_HDD6330_PAD
+#define SUPERDOM_OK BUTTON_PLAY
+#define SUPERDOM_UP BUTTON_UP
+#define SUPERDOM_DOWN BUTTON_DOWN
+#define SUPERDOM_LEFT BUTTON_PREV
+#define SUPERDOM_RIGHT BUTTON_NEXT
+#define SUPERDOM_CANCEL BUTTON_LEFT
+
#elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
#define SUPERDOM_OK BUTTON_PLAY
#define SUPERDOM_UP BUTTON_UP