From fb93c99ce8c7a2a8b50b163af6183b5fbb606623 Mon Sep 17 00:00:00 2001 From: Jean-Louis Biasini Date: Fri, 16 Mar 2012 16:41:07 +0100 Subject: Fuze+: add pdbox plugin 1) Set the compiler to include pdbox 2) Set the keymaps Change-Id: I75cf9b57ac977f7c727a28a3ed6883f65c5bbb20 --- apps/plugins/beatbox/beatbox.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'apps/plugins/beatbox') 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 @@ #define BTN_UP BUTTON_UP #define BTN_DOWN BUTTON_DOWN -#endif - +#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD +#define BTN_QUIT BUTTON_POWER +#define BTN_RIGHT BUTTON_RIGHT +#define BTN_UP BUTTON_UP +#define BTN_DOWN BUTTON_DOWN +#endif #define FRACTSIZE 10 @@ -216,10 +220,13 @@ int quit=0; #define BEATBOX_RIGHT BUTTON_RIGHT #define BEATBOX_SELECT BUTTON_SELECT - +#if (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) +#define BEATBOX_PLAY BUTTON_PLAYPAUSE +#define BEATBOX_STOP BUTTON_BACK +#else #define BEATBOX_PLAY BUTTON_ON #define BEATBOX_STOP BUTTON_OFF - +#endif #define VAL_NONE 0 #define VAL_ENABLED 1 -- cgit v1.2.3