summaryrefslogtreecommitdiff
path: root/apps/plugins/wormlet.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/wormlet.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/wormlet.c')
-rw-r--r--apps/plugins/wormlet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index e4efa8ff28..6a4a5d28f8 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -83,6 +83,8 @@ PLUGIN_HEADER
83#define BTN_QUIT (BUTTON_SELECT|BUTTON_MENU) 83#define BTN_QUIT (BUTTON_SELECT|BUTTON_MENU)
84#define BTN_STOPRESET (BUTTON_SELECT|BUTTON_PLAY) 84#define BTN_STOPRESET (BUTTON_SELECT|BUTTON_PLAY)
85 85
86#define BTN_RC_QUIT BUTTON_RC_STOP
87
86#define PLAYERS_TEXT "Menu/Play" 88#define PLAYERS_TEXT "Menu/Play"
87#define WORMS_TEXT "Left/Right" 89#define WORMS_TEXT "Left/Right"
88 90
@@ -1487,6 +1489,9 @@ static int run(void)
1487 else 1489 else
1488 paused = true; 1490 paused = true;
1489 break; 1491 break;
1492#ifdef BTN_RC_QUIT
1493 case BTN_RC_QUIT:
1494#endif
1490 case BTN_QUIT: 1495 case BTN_QUIT:
1491 return 2; /* back to menu */ 1496 return 2; /* back to menu */
1492 break; 1497 break;