summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lib/keymaps.h
diff options
context:
space:
mode:
authorSebastian Leonhardt <sebastian.leonhardt@web.de>2018-02-22 23:42:29 +0100
committerSebastian Leonhardt <sebastian.leonhardt@web.de>2018-04-03 11:34:01 +0200
commit0486e5b93e422d0bd240439f02a8509a6c5bcbc5 (patch)
treec0da5e6a86d5f352e89cedaed515c3ce201481b9 /apps/plugins/lib/keymaps.h
parentfb3f7651fd68bf3b8c7e4dbd62dbb2b3505f929a (diff)
downloadrockbox-0486e5b93e422d0bd240439f02a8509a6c5bcbc5.tar.gz
rockbox-0486e5b93e422d0bd240439f02a8509a6c5bcbc5.tar.bz2
rockbox-0486e5b93e422d0bd240439f02a8509a6c5bcbc5.zip
Zen XFi2: Enable Plugins
Keymaps aren't tested, there may be room for improvement. Change-Id: I6b8fe697899b241ea6e96f4fe446d88671ad7818
Diffstat (limited to 'apps/plugins/lib/keymaps.h')
-rw-r--r--apps/plugins/lib/keymaps.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugins/lib/keymaps.h b/apps/plugins/lib/keymaps.h
index b61a7b6b24..c079a9080b 100644
--- a/apps/plugins/lib/keymaps.h
+++ b/apps/plugins/lib/keymaps.h
@@ -42,7 +42,6 @@
#if (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \
(CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) || \
(CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \
- (CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD) || \
(CONFIG_KEYPAD == CREATIVE_ZENXFI3_PAD) || \
(CONFIG_KEYPAD == SANSA_CONNECT_PAD) || \
(CONFIG_KEYPAD == SANSA_C200_PAD) || \
@@ -91,7 +90,6 @@
#endif
#if (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \
- (CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD) || \
(CONFIG_KEYPAD == SANSA_CONNECT_PAD) || \
(CONFIG_KEYPAD == SANSA_C200_PAD) || \
(CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) || \
@@ -208,6 +206,10 @@
#define BTN_FIRE BUTTON_BOTTOMLEFT
#define BTN_PAUSE BUTTON_TOPLEFT
+#elif CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD
+#define BTN_FIRE BUTTON_MENU
+#define BTN_PAUSE BUTTON_POWER
+
#else
#error Unsupported keypad
#endif
@@ -224,7 +226,8 @@
#elif (CONFIG_KEYPAD != COWON_D2_PAD) && \
(CONFIG_KEYPAD != DX50_PAD) && \
- (CONFIG_KEYPAD != ONDAVX777_PAD)
+ (CONFIG_KEYPAD != ONDAVX777_PAD) && \
+ (CONFIG_KEYPAD != CREATIVE_ZENXFI2_PAD)
#define BTN_FIRE BUTTON_BOTTOMLEFT
#define BTN_PAUSE BUTTON_TOPLEFT
#endif