summaryrefslogtreecommitdiffstats
path: root/apps/plugins/chip8.c
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-10-02 16:05:16 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-10-02 16:05:16 +0000
commitbba23cbb41f747e52d782442d4af70109a2c124f (patch)
treee1e107d7c0200a95a0802318b6d662c447efbbac /apps/plugins/chip8.c
parentbd8c3f9ea6e7eccfd9b96ff632e1276e85673833 (diff)
downloadrockbox-bba23cbb41f747e52d782442d4af70109a2c124f.tar.gz
rockbox-bba23cbb41f747e52d782442d4af70109a2c124f.tar.bz2
rockbox-bba23cbb41f747e52d782442d4af70109a2c124f.zip
fuze+: add chip8 keymap
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30662 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chip8.c')
-rw-r--r--apps/plugins/chip8.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 1ffbbfbac5..71024b27a2 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1167,6 +1167,19 @@ CONFIG_KEYPAD == MROBE500_PAD
#define CHIP8_KEY6 BUTTON_DOWN
#define CHIP8_KEY8 BUTTON_UP
+#elif CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD
+
+#define CHIP8_OFF BUTTON_POWER
+#define CHIP8_KEY1 BUTTON_LEFT
+#define CHIP8_KEY2 BUTTON_UP
+#define CHIP8_KEY3 BUTTON_RIGHT
+#define CHIP8_KEY4 BUTTON_DOWN
+#define CHIP8_KEY5 BUTTON_PLAYPAUSE
+#define CHIP8_KEY6 BUTTON_BACK
+#define CHIP8_KEY7 BUTTON_SELECT
+#define CHIP8_KEY8 BUTTON_VOL_DOWN
+#define CHIP8_KEY9 BUTTON_VOL_UP
+
#else
#error No keymap defined!
#endif