summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
authorShachar Liberman <lshachar@hotmail.com>2006-07-30 03:10:09 +0000
committerShachar Liberman <lshachar@hotmail.com>2006-07-30 03:10:09 +0000
commit5360df96ef6f42bed22ea52b48f876920dc16a6a (patch)
tree4588d6de0a38bff61b92151e85d6501c96ee5995 /apps/plugins/brickmania.c
parent4ccacd4004ff38cd0298d8c59296f90585bfb2d3 (diff)
downloadrockbox-5360df96ef6f42bed22ea52b48f876920dc16a6a.tar.gz
rockbox-5360df96ef6f42bed22ea52b48f876920dc16a6a.zip
accept patch FS#4761 - putting the player on hold will now pause games. this should be
fitted to pong and rockblox as well. credit Lukas Sabota for the initial work, and, my very own first commit! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10365 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index 2bd01e74ed..6eb21fe4f8 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -1740,6 +1740,12 @@ int game_loop(void)
1740 int move_button,button; 1740 int move_button,button;
1741 int button_right,button_left; 1741 int button_right,button_left;
1742 button=rb->button_get(false); 1742 button=rb->button_get(false);
1743
1744#ifdef HAS_BUTTON_HOLD
1745 if (rb->button_hold())
1746 button = QUIT;
1747#endif
1748
1743 move_button=rb->button_status(); 1749 move_button=rb->button_status();
1744 1750
1745 button_right=((move_button & RIGHT) || (SCROLL_FWD(button))); 1751 button_right=((move_button & RIGHT) || (SCROLL_FWD(button)));