remove fFastDelay
This commit is contained in:
@@ -92,7 +92,7 @@ void InputFilter::Reset()
|
||||
ResetDevice( InputDevice(i) );
|
||||
}
|
||||
|
||||
void InputFilter::SetRepeatRate( float fDelay, float fFastDelay, float fRepeatRate )
|
||||
void InputFilter::SetRepeatRate( float fDelay, float fRepeatRate )
|
||||
{
|
||||
g_fTimeBeforeRepeats = fDelay;
|
||||
g_fTimeBetweenRepeats = 1/fRepeatRate;
|
||||
@@ -100,7 +100,7 @@ void InputFilter::SetRepeatRate( float fDelay, float fFastDelay, float fRepeatRa
|
||||
|
||||
void InputFilter::ResetRepeatRate()
|
||||
{
|
||||
SetRepeatRate( TIME_BEFORE_REPEATS, 0, REPEATS_PER_SEC );
|
||||
SetRepeatRate( TIME_BEFORE_REPEATS, REPEATS_PER_SEC );
|
||||
}
|
||||
|
||||
ButtonState::ButtonState():
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
void Reset();
|
||||
void Update( float fDeltaTime );
|
||||
|
||||
void SetRepeatRate( float fSlowDelay, float fFastDelay, float fRepeatRate );
|
||||
void SetRepeatRate( float fDelay, float fRepeatRate );
|
||||
void ResetRepeatRate();
|
||||
void ResetKeyRepeat( const DeviceInput &di );
|
||||
|
||||
|
||||
@@ -554,7 +554,7 @@ void ScreenOptions::HandleScreenMessage( const ScreenMessage SM )
|
||||
}
|
||||
else if( SM == SM_GainFocus )
|
||||
{
|
||||
INPUTFILTER->SetRepeatRate( 0.25f, 0.25f, 12 );
|
||||
INPUTFILTER->SetRepeatRate( 0.25f, 12 );
|
||||
}
|
||||
else if( SM == SM_LoseFocus )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user