summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2006-03-02 13:28:24 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2006-03-02 13:28:24 +0000
commit8d0a32eb4b4fd7108b9ebae81f93b3909c3e477f (patch)
tree27748464d24770544561ed3fcc1b446954a2ad46 /apps/plugins/rockboy
parentf2fe4e0c4cd4ce3fe4d35c7422ada24c0ce3af9f (diff)
gigabeat related changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8885 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r--apps/plugins/rockboy/menu.c6
-rw-r--r--apps/plugins/rockboy/rockboy.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c
index 84bfeaa3cb..15f34582a6 100644
--- a/apps/plugins/rockboy/menu.c
+++ b/apps/plugins/rockboy/menu.c
@@ -16,6 +16,12 @@
#define MENU_BUTTON_LEFT BUTTON_LEFT
#define MENU_BUTTON_RIGHT BUTTON_RIGHT
#define MENU_BUTTON_CANCEL BUTTON_MENU
+#elif (CONFIG_KEYPAD == GIGABEAT_PAD)
+#define MENU_BUTTON_UP BUTTON_UP
+#define MENU_BUTTON_DOWN BUTTON_DOWN
+#define MENU_BUTTON_LEFT BUTTON_LEFT
+#define MENU_BUTTON_RIGHT BUTTON_RIGHT
+#define MENU_BUTTON_CANCEL BUTTON_A
#else
#define MENU_BUTTON_UP BUTTON_UP
#define MENU_BUTTON_DOWN BUTTON_DOWN
diff --git a/apps/plugins/rockboy/rockboy.c b/apps/plugins/rockboy/rockboy.c
index da1017748f..41f06557a5 100644
--- a/apps/plugins/rockboy/rockboy.c
+++ b/apps/plugins/rockboy/rockboy.c
@@ -126,6 +126,13 @@ void setoptions (void) {
options.START=BUTTON_MODE;
options.SELECT=(BUTTON_SELECT | BUTTON_REL);
options.MENU=(BUTTON_SELECT | BUTTON_REPEAT);
+
+#elif CONFIG_KEYPAD == GIGABEAT_PAD
+ options.A=BUTTON_VOL_UP;
+ options.B=BUTTON_VOL_DOWN;
+ options.START=BUTTON_POWER;
+ options.SELECT=BUTTON_SELECT;
+ options.MENU=BUTTON_MENU;
#endif
options.maxskip=4;