IET_FAST_REPEAT is the same as IET_SLOW_REPEAT, sent instead
after the button has been held a while. It hasn't actually been a different repeat rate for a very long time, and was partially phased out a while ago. Now it's just used to see if the button has been held a while. Do that with GetSecsHeld instead.
This commit is contained in:
@@ -2119,7 +2119,7 @@ void ScreenGameplay::Input( const InputEventPlus &input )
|
||||
{
|
||||
if( ((!PREFSMAN->m_bDelayedBack && input.type==IET_FIRST_PRESS) ||
|
||||
(input.DeviceI.device==DEVICE_KEYBOARD && (input.type==IET_SLOW_REPEAT||input.type==IET_FAST_REPEAT)) ||
|
||||
(input.DeviceI.device!=DEVICE_KEYBOARD && input.type==IET_FAST_REPEAT)) )
|
||||
(input.DeviceI.device!=DEVICE_KEYBOARD && INPUTFILTER->GetSecsHeld(input.DeviceI) >= 1.0f)) )
|
||||
{
|
||||
LOG->Trace("Player %i went back", input.MenuI.player+1);
|
||||
BeginBackingOutFromGameplay();
|
||||
|
||||
Reference in New Issue
Block a user