From 6a7f89b8dbe9d984f7ca6639a7fdb5a660d21320 Mon Sep 17 00:00:00 2001 From: funman Date: Wed, 2 Jun 2010 20:15:44 +0000 Subject: [PATCH] pdbox: add fuze keymap git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26489 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/SUBDIRS | 3 ++- apps/plugins/pdbox/pdbox.h | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS index b74d3fad3..1d0bfe9cc 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 3fa8ff004..e0a0fb59c 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 -- 2.11.4.GIT