summaryrefslogtreecommitdiffstats
path: root/apps/plugins/chip8.c
diff options
context:
space:
mode:
authorAndrew Ryabinin <ryabinin.a.a@gmail.com>2012-03-23 22:32:50 +0400
committerAndrew Ryabinin <ryabinin.a.a@gmail.com>2012-04-19 17:31:13 +0400
commit397863ab3d45bdd8292512a22cd3b436cf281c76 (patch)
treea74a1fd6084875340f978ce67d4dc5ff8716c172 /apps/plugins/chip8.c
parent8187d8d5d158bef269048694fd6e65d89263cd42 (diff)
downloadrockbox-397863ab3d45bdd8292512a22cd3b436cf281c76.tar.gz
rockbox-397863ab3d45bdd8292512a22cd3b436cf281c76.tar.bz2
rockbox-397863ab3d45bdd8292512a22cd3b436cf281c76.zip
hm60x: Add support for plugins.
Change-Id: I4cad0881c8249f163680a280f70d1a0b36248da8
Diffstat (limited to 'apps/plugins/chip8.c')
-rw-r--r--apps/plugins/chip8.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index b2faed5d80..33f867f06a 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1210,6 +1210,14 @@ CONFIG_KEYPAD == MROBE500_PAD
#define CHIP8_KEY8 BUTTON_POWER
#define CHIP8_KEY9 BUTTON_USER
+#elif (CONFIG_KEYPAD == HM60X_PAD)
+#define CHIP8_OFF BUTTON_POWER
+#define CHIP8_KEY2 BUTTON_UP
+#define CHIP8_KEY4 BUTTON_DOWN
+#define CHIP8_KEY5 BUTTON_SELECT
+#define CHIP8_KEY6 BUTTON_RIGHT
+#define CHIP8_KEY8 BUTTON_LEFT
+
#else
#error No keymap defined!
#endif