summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-02 20:15:44 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-02 20:15:44 +0000
commitef57475f14a3dfb75d3876de6d31eed36cb0c488 (patch)
tree815ebc38b0bafb90b45bf07f48ca0272e267b5cc
parentb467fb9c6b2f65f000365f87103cc43c78d8d356 (diff)
pdbox: add fuze keymap
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26489 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/SUBDIRS3
-rw-r--r--apps/plugins/pdbox/pdbox.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS
index b74d3fad30..1d0bfe9cc1 100644
--- a/apps/plugins/SUBDIRS
+++ b/apps/plugins/SUBDIRS
@@ -73,7 +73,8 @@ midi
#endif
/* beatbox */
-#if defined(IRIVER_H300_SERIES) || defined(IRIVER_H100_SERIES)
+#if defined(IRIVER_H300_SERIES) || defined(IRIVER_H100_SERIES) \
+ || CONFIG_KEYPAD == SANSA_FUZE_PAD
/* PDBox is confirmed to run on these player models. */
pdbox
#endif
diff --git a/apps/plugins/pdbox/pdbox.h b/apps/plugins/pdbox/pdbox.h
index 3fa8ff0042..e0a0fb59c7 100644
--- a/apps/plugins/pdbox/pdbox.h
+++ b/apps/plugins/pdbox/pdbox.h
@@ -245,6 +245,15 @@ enum pd_key_id
#define PDPOD_WHEELLEFT (BUTTON_DOWN)
#define PDPOD_WHEELRIGHT (BUTTON_UP)
#define PDPOD_ACTION (BUTTON_ON)
+#elif CONFIG_KEYPAD == SANSA_FUZE_PAD
+ #define PDPOD_QUIT (BUTTON_HOME|BUTTON_REPEAT)
+ #define PDPOD_PLAY BUTTON_UP
+ #define PDPOD_PREVIOUS BUTTON_LEFT
+ #define PDPOD_NEXT BUTTON_RIGHT
+ #define PDPOD_MENU BUTTON_SELECT
+ #define PDPOD_WHEELLEFT BUTTON_SCROLL_BACK
+ #define PDPOD_WHEELRIGHT BUTTON_SCROLL_FWD
+ #define PDPOD_ACTION BUTTON_DOWN
#else
#warning "No keys defined for this architecture!"
#endif