summaryrefslogtreecommitdiffstats
path: root/apps/plugins/chip8.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2006-06-30 16:43:47 +0000
committerKevin Ferrare <kevin@rockbox.org>2006-06-30 16:43:47 +0000
commit0e027bd90c4f0c2aa42c087a1957b42a58e93270 (patch)
treed21b7009fb818c907fcfc2268f1b9a12fd9263de /apps/plugins/chip8.c
parent7bbf53eae502417e6e0fbb204e319310f28f33ad (diff)
downloadrockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.tar.gz
rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.zip
To avoid having to use the main unit when accidentally launching a plugin from the remote, plugins now support remote quit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10157 a1c6a512-1295-4272-9138-f99709370657
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)
#define CHIP8_KEY6 BUTTON_RIGHT
#define CHIP8_KEY8 BUTTON_DOWN
+#define CHIP8_RC_OFF BUTTON_RC_STOP
+
#elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \
(CONFIG_KEYPAD == IPOD_3G_PAD)
#define CHIP8_OFF BUTTON_MENU
@@ -1106,6 +1108,9 @@ static void chip8_keyboard(void)
int button = rb->button_get(false);
switch (button)
{
+#ifdef CHIP8_RC_OFF
+ case CHIP8_RC_OFF:
+#endif
case CHIP8_OFF: /* Abort Emulator */
chip8_running = 0;
break;