From 5360df96ef6f42bed22ea52b48f876920dc16a6a Mon Sep 17 00:00:00 2001 From: Shachar Liberman Date: Sun, 30 Jul 2006 03:10:09 +0000 Subject: 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 --- apps/plugins/brickmania.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/brickmania.c') 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) int move_button,button; int button_right,button_left; button=rb->button_get(false); + +#ifdef HAS_BUTTON_HOLD + if (rb->button_hold()) + button = QUIT; +#endif + move_button=rb->button_status(); button_right=((move_button & RIGHT) || (SCROLL_FWD(button))); -- cgit v1.2.3