Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#5142 - Brickmania Hold/Pause Patch

Attached to Project: Rockbox
Opened by Lukas Sabota (punkrockguy318) - Sunday, 16 April 2006, 05:40 GMT+2
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

It is cumbersome to have to press pause, and then press hold when you want to take a quick break from playing a game. In this patch, the pause menu will be brough up when the hold button is pressed. Before button input is taken, a quick check to see if the hold button is on happens.
   brickmania_hold_pause.patch (1.2 KiB)
 apps/plugins/brickmania.c |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

This task depends upon

Closed by  Dominik Riebeling (bluebrother)
Sunday, 30 July 2006, 09:13 GMT+2
Reason for closing:  Accepted
Comment by Lukas Sabota (punkrockguy318) - Sunday, 16 April 2006, 18:47 GMT+2
I've found a bug in the patch, it doesn't resume properly. I'll work on it and then upload anther version of the patch
Comment by Lukas Sabota (punkrockguy318) - Sunday, 16 April 2006, 19:04 GMT+2
This is a new version of the patch that does things a little bit differenly. Rather than calling the menu directly (and reinventing the menu code), when the hold is detected, a QUIT button signal is sent. The main loop then pauses the game, and it resumes as normal with no problems.

Tested extensively and it seems to work fine :)
   brickmania_hold_pause2.patch (0.6 KiB)
 apps/plugins/brickmania.c |    6 ++++++
 1 file changed, 6 insertions(+)

Loading...