PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Blit Sample Shutdown

In the Blit sample provided with PocketFrog 0.5.2 it exits whenever I hit a button. However, I can't figure out where in the code it tells it to Shutdown()? Can someone help me?
Conan · 11 Jul 2002, 20:35 UTC — Using Shutdown
Hi Jay

The easiest thing to do is to add the Shutdown function in to your Blit demo & control the call yourself. If you want to see sample code look at chapter 4 of my beginners guide to pocketfrog as the sample contained has the shutdown function in place used with the D-Pad down.

( http://www.sundialsoft.co.uk )
This threw me the first time I looked at it too. It's in the Game class.

From game.cpp:

Code:
void Game::ButtonDown( int button )
{
Shutdown();
}


When you inherit from the Game class to create your own, you will override the Button and Stylus functions to provide your own behavior. If you don't it will use the parent class's implementation.

Pam