diff options
Diffstat (limited to 'apps/plugins/chip8.c')
-rw-r--r-- | apps/plugins/chip8.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c index 8645893820..f861d19caa 100644 --- a/apps/plugins/chip8.c +++ b/apps/plugins/chip8.c | |||
@@ -944,28 +944,8 @@ STATIC void chip8 (void) | |||
944 | #endif | 944 | #endif |
945 | 945 | ||
946 | /* variable button definitions */ | 946 | /* variable button definitions */ |
947 | #if CONFIG_KEYPAD == RECORDER_PAD /* only 9 out of 16 chip8 buttons */ | 947 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ |
948 | #define CHIP8_OFF BUTTON_OFF | 948 | (CONFIG_KEYPAD == IRIVER_H300_PAD) |
949 | #define CHIP8_KEY1 BUTTON_F1 | ||
950 | #define CHIP8_KEY2 BUTTON_UP | ||
951 | #define CHIP8_KEY3 BUTTON_F3 | ||
952 | #define CHIP8_KEY4 BUTTON_LEFT | ||
953 | #define CHIP8_KEY5 BUTTON_PLAY | ||
954 | #define CHIP8_KEY6 BUTTON_RIGHT | ||
955 | #define CHIP8_KEY7 BUTTON_F2 | ||
956 | #define CHIP8_KEY8 BUTTON_DOWN | ||
957 | #define CHIP8_KEY9 BUTTON_ON | ||
958 | |||
959 | #elif CONFIG_KEYPAD == ONDIO_PAD /* even more limited */ | ||
960 | #define CHIP8_OFF BUTTON_OFF | ||
961 | #define CHIP8_KEY2 BUTTON_UP | ||
962 | #define CHIP8_KEY4 BUTTON_LEFT | ||
963 | #define CHIP8_KEY5 BUTTON_MENU | ||
964 | #define CHIP8_KEY6 BUTTON_RIGHT | ||
965 | #define CHIP8_KEY8 BUTTON_DOWN | ||
966 | |||
967 | #elif (CONFIG_KEYPAD == IRIVER_H100_PAD) || \ | ||
968 | (CONFIG_KEYPAD == IRIVER_H300_PAD) | ||
969 | #define CHIP8_OFF BUTTON_OFF | 949 | #define CHIP8_OFF BUTTON_OFF |
970 | #define CHIP8_KEY2 BUTTON_UP | 950 | #define CHIP8_KEY2 BUTTON_UP |
971 | #define CHIP8_KEY4 BUTTON_LEFT | 951 | #define CHIP8_KEY4 BUTTON_LEFT |