summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/SUBDIRS3
-rw-r--r--apps/plugins/beatbox/beatbox.c15
-rw-r--r--apps/plugins/pdbox/pdbox.h9
3 files changed, 22 insertions, 5 deletions
diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS
index c874927205..b1f19d2eac 100644
--- a/apps/plugins/SUBDIRS
+++ b/apps/plugins/SUBDIRS
@@ -74,7 +74,8 @@ mikmod
74#if defined(IRIVER_H300_SERIES) || defined(IRIVER_H100_SERIES) || \ 74#if defined(IRIVER_H300_SERIES) || defined(IRIVER_H100_SERIES) || \
75 (CONFIG_KEYPAD == SANSA_FUZE_PAD) || (CONFIG_KEYPAD == SANSA_E200_PAD) || \ 75 (CONFIG_KEYPAD == SANSA_FUZE_PAD) || (CONFIG_KEYPAD == SANSA_E200_PAD) || \
76 (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \ 76 (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \
77 (CONFIG_KEYPAD == IPOD_1G2G_PAD || CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) 77 (CONFIG_KEYPAD == IPOD_1G2G_PAD || CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) || \
78 (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD)
78/* PDBox is confirmed to run on these player models. */ 79/* PDBox is confirmed to run on these player models. */
79pdbox 80pdbox
80#endif 81#endif
diff --git a/apps/plugins/beatbox/beatbox.c b/apps/plugins/beatbox/beatbox.c
index e7d3225c8b..0fd2a947fb 100644
--- a/apps/plugins/beatbox/beatbox.c
+++ b/apps/plugins/beatbox/beatbox.c
@@ -106,9 +106,13 @@
106#define BTN_UP BUTTON_UP 106#define BTN_UP BUTTON_UP
107#define BTN_DOWN BUTTON_DOWN 107#define BTN_DOWN BUTTON_DOWN
108 108
109#endif 109#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD
110 110#define BTN_QUIT BUTTON_POWER
111#define BTN_RIGHT BUTTON_RIGHT
112#define BTN_UP BUTTON_UP
113#define BTN_DOWN BUTTON_DOWN
111 114
115#endif
112 116
113#define FRACTSIZE 10 117#define FRACTSIZE 10
114 118
@@ -216,10 +220,13 @@ int quit=0;
216#define BEATBOX_RIGHT BUTTON_RIGHT 220#define BEATBOX_RIGHT BUTTON_RIGHT
217#define BEATBOX_SELECT BUTTON_SELECT 221#define BEATBOX_SELECT BUTTON_SELECT
218 222
219 223#if (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD)
224#define BEATBOX_PLAY BUTTON_PLAYPAUSE
225#define BEATBOX_STOP BUTTON_BACK
226#else
220#define BEATBOX_PLAY BUTTON_ON 227#define BEATBOX_PLAY BUTTON_ON
221#define BEATBOX_STOP BUTTON_OFF 228#define BEATBOX_STOP BUTTON_OFF
222 229#endif
223 230
224#define VAL_NONE 0 231#define VAL_NONE 0
225#define VAL_ENABLED 1 232#define VAL_ENABLED 1
diff --git a/apps/plugins/pdbox/pdbox.h b/apps/plugins/pdbox/pdbox.h
index 7f7c4754e0..711d663da9 100644
--- a/apps/plugins/pdbox/pdbox.h
+++ b/apps/plugins/pdbox/pdbox.h
@@ -299,6 +299,15 @@ enum pd_key_id
299 #define PDPOD_WHEELLEFT BUTTON_UP 299 #define PDPOD_WHEELLEFT BUTTON_UP
300 #define PDPOD_WHEELRIGHT BUTTON_DOWN 300 #define PDPOD_WHEELRIGHT BUTTON_DOWN
301 #define PDPOD_ACTION BUTTON_SELECT 301 #define PDPOD_ACTION BUTTON_SELECT
302#elif (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD)
303 #define PDPOD_QUIT BUTTON_POWER
304 #define PDPOD_PLAY BUTTON_PLAYPAUSE
305 #define PDPOD_PREVIOUS BUTTON_LEFT
306 #define PDPOD_NEXT BUTTON_RIGHT
307 #define PDPOD_MENU BUTTON_BACK
308 #define PDPOD_WHEELLEFT BUTTON_UP
309 #define PDPOD_WHEELRIGHT BUTTON_DOWN
310 #define PDPOD_ACTION BUTTON_SELECT
302#else 311#else
303 #warning "No keys defined for this architecture!" 312 #warning "No keys defined for this architecture!"
304#endif 313#endif