summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-02 17:35:14 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-02 17:35:14 +0000
commitfaa6d40f09b49f77a6ebfb2c598ec2573c72d4a0 (patch)
treecbdb683a8e66b2a6405d1ff0b4180ec5d9ed1d40 /apps
parentf883a61d626ed87cd612eff6a38c6b4fb2e780b0 (diff)
fuze+: add zxbox keymap
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30695 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/zxbox/keymaps.h9
-rw-r--r--apps/plugins/zxbox/zxbox_keyb.c9
2 files changed, 18 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/keymaps.h b/apps/plugins/zxbox/keymaps.h
index c05a3c93fb..5f216fda14 100644
--- a/apps/plugins/zxbox/keymaps.h
+++ b/apps/plugins/zxbox/keymaps.h
@@ -216,6 +216,15 @@
#define ZX_LEFT BUTTON_REW
#define ZX_RIGHT BUTTON_FF
+#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD
+
+#define ZX_MENU BUTTON_PLAYPAUSE
+#define ZX_UP BUTTON_UP
+#define ZX_DOWN BUTTON_DOWN
+#define ZX_SELECT BUTTON_SELECT
+#define ZX_LEFT BUTTON_LEFT
+#define ZX_RIGHT BUTTON_RIGHT
+
#else
#error Keymap not defined!
diff --git a/apps/plugins/zxbox/zxbox_keyb.c b/apps/plugins/zxbox/zxbox_keyb.c
index 5680a8e327..f434928680 100644
--- a/apps/plugins/zxbox/zxbox_keyb.c
+++ b/apps/plugins/zxbox/zxbox_keyb.c
@@ -222,6 +222,15 @@
#define KBD_UP BUTTON_UP
#define KBD_DOWN BUTTON_DOWN
+#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD
+
+#define KBD_SELECT BUTTON_SELECT
+#define KBD_ABORT BUTTON_BACK
+#define KBD_LEFT BUTTON_LEFT
+#define KBD_RIGHT BUTTON_RIGHT
+#define KBD_UP BUTTON_UP
+#define KBD_DOWN BUTTON_DOWN
+
#endif
#ifdef HAVE_TOUCHSCREEN