ScreenMapControllers::TweenOffScreen

This commit is contained in:
Glenn Maynard
2005-12-05 17:03:46 +00:00
parent 2fe74fea4c
commit 5f83ff601b
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -288,8 +288,6 @@ void ScreenMapControllers::Input( const InputEventPlus &input )
INPUTMAPPER->SaveMappingsToDisk(); // save changes INPUTMAPPER->SaveMappingsToDisk(); // save changes
StartTransitioningScreen( SM_GoToNextScreen ); StartTransitioningScreen( SM_GoToNextScreen );
for( int b=0; b<GAMESTATE->GetCurrentGame()->m_iButtonsPerController; b++ )
m_Line[b].RunCommands( (b%2)? ODD_LINE_OUT:EVEN_LINE_OUT );
} }
break; break;
case KEY_ENTER: /* Change the selection. */ case KEY_ENTER: /* Change the selection. */
@@ -307,6 +305,12 @@ void ScreenMapControllers::Input( const InputEventPlus &input )
Refresh(); Refresh();
} }
void ScreenMapControllers::TweenOffScreen()
{
for( int b=0; b<GAMESTATE->GetCurrentGame()->m_iButtonsPerController; b++ )
m_Line[b].RunCommands( (b%2)? ODD_LINE_OUT:EVEN_LINE_OUT );
}
void ScreenMapControllers::Refresh() void ScreenMapControllers::Refresh()
{ {
for( int p=0; p<MAX_GAME_CONTROLLERS; p++ ) for( int p=0; p<MAX_GAME_CONTROLLERS; p++ )
+2
View File
@@ -19,6 +19,8 @@ public:
virtual void Update( float fDeltaTime ); virtual void Update( float fDeltaTime );
virtual void Input( const InputEventPlus &input ); virtual void Input( const InputEventPlus &input );
virtual void TweenOffScreen();
private: private:
void KeyLeft(); void KeyLeft();
void KeyRight(); void KeyRight();