modify Input() on screens to return boolean

This commit is contained in:
Devin J. Pohly
2013-01-12 22:48:38 -05:00
parent 79583090ac
commit d13ac7e7a2
98 changed files with 861 additions and 697 deletions
+7 -5
View File
@@ -4,23 +4,25 @@
REGISTER_SCREEN_CLASS( ScreenInstructions );
void ScreenInstructions::Input( const InputEventPlus &input )
bool ScreenInstructions::Input( const InputEventPlus &input )
{
if( IsTransitioning() )
return;
return false;
// default input handler
Screen::Input( input );
return Screen::Input( input );
}
void ScreenInstructions::MenuBack( const InputEventPlus &input )
bool ScreenInstructions::MenuBack( const InputEventPlus &input )
{
Cancel( SM_GoToPrevScreen );
return true;
}
void ScreenInstructions::MenuStart( const InputEventPlus &input )
bool ScreenInstructions::MenuStart( const InputEventPlus &input )
{
StartTransitioningScreen( SM_GoToNextScreen );
return true;
}
/*