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
+4 -2
View File
@@ -109,20 +109,22 @@ void ScreenEnding::Init()
GAMESTATE->Reset();
}
void ScreenEnding::Input( const InputEventPlus &input )
bool ScreenEnding::Input( const InputEventPlus &input )
{
bool handled = false;
if( !IsTransitioning() )
{
switch( input.MenuI )
{
case GAME_BUTTON_START:
SCREENMAN->PostMessageToTopScreen( SM_BeginFadingOut, 0 );
handled = true;
default:
break;
}
}
ScreenAttract::Input( input );
return ScreenAttract::Input( input ) || handled;
}
/*