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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 2a70369523..3facd04be1 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -976,6 +976,8 @@ STATIC void chip8 (void)
976#define CHIP8_KEY6 BUTTON_RIGHT 976#define CHIP8_KEY6 BUTTON_RIGHT
977#define CHIP8_KEY8 BUTTON_DOWN 977#define CHIP8_KEY8 BUTTON_DOWN
978 978
979#define CHIP8_RC_OFF BUTTON_RC_STOP
980
979#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ 981#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \
980 (CONFIG_KEYPAD == IPOD_3G_PAD) 982 (CONFIG_KEYPAD == IPOD_3G_PAD)
981#define CHIP8_OFF BUTTON_MENU 983#define CHIP8_OFF BUTTON_MENU
@@ -1106,6 +1108,9 @@ static void chip8_keyboard(void)
1106 int button = rb->button_get(false); 1108 int button = rb->button_get(false);
1107 switch (button) 1109 switch (button)
1108 { 1110 {
1111#ifdef CHIP8_RC_OFF
1112 case CHIP8_RC_OFF:
1113#endif
1109 case CHIP8_OFF: /* Abort Emulator */ 1114 case CHIP8_OFF: /* Abort Emulator */
1110 chip8_running = 0; 1115 chip8_running = 0;
1111 break; 1116 break;