summaryrefslogtreecommitdiffstats
path: root/apps/plugins/chip8.c
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/chip8.c
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/chip8.c')
-rw-r--r--apps/plugins/chip8.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 4f556850c0..316852c14f 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1263,6 +1263,18 @@ CONFIG_KEYPAD == MROBE500_PAD
#elif (CONFIG_KEYPAD == DX50_PAD)
#define CHIP8_OFF BUTTON_POWER
+#elif CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD
+#define CHIP8_OFF BUTTON_POWER
+#define CHIP8_KEY1 BUTTON_TOPLEFT
+#define CHIP8_KEY2 BUTTON_TOPMIDDLE
+#define CHIP8_KEY3 BUTTON_TOPRIGHT
+#define CHIP8_KEY4 BUTTON_MIDLEFT
+#define CHIP8_KEY5 BUTTON_CENTER
+#define CHIP8_KEY6 BUTTON_MIDRIGHT
+#define CHIP8_KEY7 BUTTON_BOTTOMLEFT
+#define CHIP8_KEY8 BUTTON_BOTTOMMIDDLE
+#define CHIP8_KEY9 BUTTON_BOTTOMRIGHT
+
#else
#error No keymap defined!
#endif