summaryrefslogtreecommitdiff
path: root/apps/plugins/beatbox/beatbox.c
diff options
context:
space:
mode:
authorJean-Louis Biasini <jlbiasini@gmail.com>2012-03-16 16:41:07 +0100
committerSolomon Peachy <pizza@shaftnet.org>2024-10-27 09:24:57 -0400
commitfb93c99ce8c7a2a8b50b163af6183b5fbb606623 (patch)
tree198543f07ad9a08f27dc38967df4a2e99fb1db54 /apps/plugins/beatbox/beatbox.c
parentb8d35c042de327a7ac5b35496283cdc2ab22d991 (diff)
downloadrockbox-fb93c99ce8c7a2a8b50b163af6183b5fbb606623.tar.gz
rockbox-fb93c99ce8c7a2a8b50b163af6183b5fbb606623.zip
Fuze+: add pdbox plugin
1) Set the compiler to include pdbox 2) Set the keymaps Change-Id: I75cf9b57ac977f7c727a28a3ed6883f65c5bbb20
Diffstat (limited to 'apps/plugins/beatbox/beatbox.c')
-rw-r--r--apps/plugins/beatbox/beatbox.c15
1 files changed, 11 insertions, 4 deletions
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