summaryrefslogtreecommitdiff
path: root/apps/plugins/chip8.c
diff options
context:
space:
mode:
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 33f867f..2585c49 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1218,6 +1218,18 @@ CONFIG_KEYPAD == MROBE500_PAD
#define CHIP8_KEY6 BUTTON_RIGHT
#define CHIP8_KEY8 BUTTON_LEFT
+#elif (CONFIG_KEYPAD == HM801_PAD)
+#define CHIP8_OFF (BUTTON_POWER|BUTTON_SELECT)
+#define CHIP8_KEY1 BUTTON_PREV
+#define CHIP8_KEY2 BUTTON_UP
+#define CHIP8_KEY3 BUTTON_DOWN
+#define CHIP8_KEY4 BUTTON_LEFT
+#define CHIP8_KEY5 BUTTON_SELECT
+#define CHIP8_KEY6 BUTTON_RIGHT
+#define CHIP8_KEY7 BUTTON_NEXT
+#define CHIP8_KEY8 BUTTON_PLAY
+#define CHIP8_KEY9 BUTTON_POWER
+
#else
#error No keymap defined!
#endif