This commit is contained in:
Glenn Maynard
2004-03-07 03:49:28 +00:00
parent d444d82235
commit eb673765ac
+9 -18
View File
@@ -757,40 +757,31 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ
INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD,SDLK_RCTRL)) ) INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD,SDLK_RCTRL)) )
{ {
float& fScrollSpeed = GAMESTATE->m_PlayerOptions[PLAYER_1].m_fScrollSpeed; float& fScrollSpeed = GAMESTATE->m_PlayerOptions[PLAYER_1].m_fScrollSpeed;
float fNewScrollSpeed = fScrollSpeed;
if( DeviceI.button == SDLK_UP ) if( DeviceI.button == SDLK_UP )
{ {
if( fScrollSpeed == 4 ) if( fScrollSpeed == 4 )
{ fNewScrollSpeed = 2;
fScrollSpeed = 2;
m_soundMarker.Play();
GAMESTATE->StoreSelectedOptions();
}
else if( fScrollSpeed == 2 ) else if( fScrollSpeed == 2 )
{ fNewScrollSpeed = 1;
fScrollSpeed = 1;
m_soundMarker.Play();
GAMESTATE->StoreSelectedOptions();
}
break;
} }
else if( DeviceI.button == SDLK_DOWN ) else if( DeviceI.button == SDLK_DOWN )
{ {
if( fScrollSpeed == 2 ) if( fScrollSpeed == 2 )
{ fNewScrollSpeed = 4;
fScrollSpeed = 4;
m_soundMarker.Play();
GAMESTATE->StoreSelectedOptions();
}
else if( fScrollSpeed == 1 ) else if( fScrollSpeed == 1 )
fNewScrollSpeed = 2;
}
if( fNewScrollSpeed != fScrollSpeed )
{ {
fScrollSpeed = 2; fScrollSpeed = fNewScrollSpeed;
m_soundMarker.Play(); m_soundMarker.Play();
GAMESTATE->StoreSelectedOptions(); GAMESTATE->StoreSelectedOptions();
} }
break; break;
} }
}
float fBeatsToMove=0.f; float fBeatsToMove=0.f;
switch( DeviceI.button ) switch( DeviceI.button )