summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.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/brickmania.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/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index b5d0e47445..2bd01e74ed 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -32,6 +32,8 @@ PLUGIN_HEADER
32#define UP BUTTON_UP 32#define UP BUTTON_UP
33#define DOWN BUTTON_DOWN 33#define DOWN BUTTON_DOWN
34 34
35#define RC_QUIT BUTTON_RC_STOP
36
35/* Only iPod have scroll events */ 37/* Only iPod have scroll events */
36#define SCROLL_FWD(x) (0) 38#define SCROLL_FWD(x) (0)
37#define SCROLL_BACK(x) (0) 39#define SCROLL_BACK(x) (0)
@@ -971,6 +973,9 @@ int game_menu(int when)
971 return 3; 973 return 3;
972 } 974 }
973 break; 975 break;
976#ifdef RC_QUIT
977 case RC_QUIT:
978#endif
974 case QUIT: 979 case QUIT:
975 return 3; 980 return 3;
976 break; 981 break;
@@ -1062,6 +1067,9 @@ int help(int when)
1062 1067
1063 button=rb->button_get(true); 1068 button=rb->button_get(true);
1064 switch (button) { 1069 switch (button) {
1070#ifdef RC_QUIT
1071 case RC_QUIT:
1072#endif
1065 case QUIT: 1073 case QUIT:
1066 switch (game_menu(when)) { 1074 switch (game_menu(when)) {
1067 case 0: 1075 case 0:
@@ -1810,6 +1818,9 @@ int game_loop(void)
1810 con_game=0; 1818 con_game=0;
1811 } 1819 }
1812 break; 1820 break;
1821#ifdef RC_QUIT
1822 case RC_QUIT:
1823#endif
1813 case QUIT: 1824 case QUIT:
1814 switch(game_menu(1)) { 1825 switch(game_menu(1)) {
1815 case 0: 1826 case 0: