//------------------------------------------------------------------------- bool MapDemoScreen::handleKeyPress( int keyCode ) //------------------------------------------------------------------------- { switch( keyCode ) { case MAK_2: nextMapSource( ); return true; case MAK_BACK: case MAK_SOFTRIGHT: maExit( 0 ); #if 0 // TODO: proper exit MapDemoMoblet& moblet = (MapDemoMoblet&)Environment::getEnvironment( ); moblet.Terminate( ); return true; #endif } if ( AppScreen::handleKeyPress( keyCode ) ) return true; // Here we tell the map widget to handle the key press. return mMap->handleKeyPress( keyCode ); }
//------------------------------------------------------------------------- bool MapDemoScreen::handleKeyPress( int keyCode ) //------------------------------------------------------------------------- { switch( keyCode ) { case MAK_2: nextMapSource( ); return true; case MAK_SOFTRIGHT: //maExit( 0 ); // TODO: proper exit MapDemoMoblet& moblet = (MapDemoMoblet&)Environment::getEnvironment( ); moblet.Terminate( ); return true; } if ( AppScreen::handleKeyPress( keyCode ) ) return true; return mMap->handleKeyPress( keyCode ); }