diff options
author | Kevin Ferrare <kevin@rockbox.org> | 2006-06-30 16:43:47 +0000 |
---|---|---|
committer | Kevin Ferrare <kevin@rockbox.org> | 2006-06-30 16:43:47 +0000 |
commit | 0e027bd90c4f0c2aa42c087a1957b42a58e93270 (patch) | |
tree | d21b7009fb818c907fcfc2268f1b9a12fd9263de /apps/plugins/star.c | |
parent | 7bbf53eae502417e6e0fbb204e319310f28f33ad (diff) | |
download | rockbox-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/star.c')
-rw-r--r-- | apps/plugins/star.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/star.c b/apps/plugins/star.c index 5c89a795c8..10bc3fd6af 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c | |||
@@ -95,6 +95,7 @@ PLUGIN_HEADER | |||
95 | #define STAR_LEVEL_REPEAT (BUTTON_MODE | BUTTON_UP) | 95 | #define STAR_LEVEL_REPEAT (BUTTON_MODE | BUTTON_UP) |
96 | #define STAR_MENU_RUN BUTTON_RIGHT | 96 | #define STAR_MENU_RUN BUTTON_RIGHT |
97 | 97 | ||
98 | #define STAR_RC_QUIT BUTTON_RC_STOP | ||
98 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | 99 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ |
99 | (CONFIG_KEYPAD == IPOD_3G_PAD) | 100 | (CONFIG_KEYPAD == IPOD_3G_PAD) |
100 | 101 | ||
@@ -687,6 +688,9 @@ static int star_run_game(void) | |||
687 | key = rb->button_get(true); | 688 | key = rb->button_get(true); |
688 | switch (key) | 689 | switch (key) |
689 | { | 690 | { |
691 | #ifdef STAR_RC_QUIT | ||
692 | case STAR_RC_QUIT: | ||
693 | #endif | ||
690 | case STAR_QUIT: | 694 | case STAR_QUIT: |
691 | return 0; | 695 | return 0; |
692 | 696 | ||
@@ -905,6 +909,9 @@ static int star_menu(void) | |||
905 | key = rb->button_get(false); | 909 | key = rb->button_get(false); |
906 | switch (key) | 910 | switch (key) |
907 | { | 911 | { |
912 | #ifdef STAR_RC_QUIT | ||
913 | case STAR_RC_QUIT: | ||
914 | #endif | ||
908 | case STAR_QUIT: | 915 | case STAR_QUIT: |
909 | return PLUGIN_OK; | 916 | return PLUGIN_OK; |
910 | case STAR_UP: | 917 | case STAR_UP: |