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
+8 -6
View File
@@ -347,24 +347,26 @@ void ScreenWithMenuElements::StopTimer()
REGISTER_SCREEN_CLASS( ScreenWithMenuElementsSimple );
void ScreenWithMenuElementsSimple::MenuStart( const InputEventPlus &input )
bool ScreenWithMenuElementsSimple::MenuStart( const InputEventPlus &input )
{
if( IsTransitioning() )
return;
return false;
if( m_fLockInputSecs > 0 )
return;
return false;
StartTransitioningScreen( SM_GoToNextScreen );
return true;
}
void ScreenWithMenuElementsSimple::MenuBack( const InputEventPlus &input )
bool ScreenWithMenuElementsSimple::MenuBack( const InputEventPlus &input )
{
if( IsTransitioning() )
return;
return false;
if( m_fLockInputSecs > 0 )
return;
return false;
Cancel( SM_GoToPrevScreen );
return true;
}
// lua start