diff options
Diffstat (limited to 'apps/plugins/chip8.c')
-rw-r--r-- | apps/plugins/chip8.c | 12 |
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 |