diff options
author | Shachar Liberman <lshachar@hotmail.com> | 2006-07-30 03:10:09 +0000 |
---|---|---|
committer | Shachar Liberman <lshachar@hotmail.com> | 2006-07-30 03:10:09 +0000 |
commit | 5360df96ef6f42bed22ea52b48f876920dc16a6a (patch) | |
tree | 4588d6de0a38bff61b92151e85d6501c96ee5995 /apps/plugins/bubbles.c | |
parent | 4ccacd4004ff38cd0298d8c59296f90585bfb2d3 (diff) | |
download | rockbox-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/bubbles.c')
-rwxr-xr-x | apps/plugins/bubbles.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index f2676f7ff1..11e415867e 100755 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c | |||
@@ -2368,6 +2368,12 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock, | |||
2368 | long start; | 2368 | long start; |
2369 | 2369 | ||
2370 | button = rb->button_get_w_tmo(timeout); | 2370 | button = rb->button_get_w_tmo(timeout); |
2371 | |||
2372 | #ifdef HAS_BUTTON_HOLD | ||
2373 | if (rb->button_hold()) | ||
2374 | button = BUBBLES_START; | ||
2375 | #endif | ||
2376 | |||
2371 | switch(button){ | 2377 | switch(button){ |
2372 | case (BUBBLES_LEFT|BUTTON_REPEAT): | 2378 | case (BUBBLES_LEFT|BUTTON_REPEAT): |
2373 | if(bb->angle > MIN_ANGLE) bb->angle -= 4; | 2379 | if(bb->angle > MIN_ANGLE) bb->angle -= 4; |