summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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