mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Merge pull request #8700 from Robyt3/Binds-Repeat-Fix
Fix binds not being repeated when key held down
This commit is contained in:
commit
7added6eef
|
@ -150,6 +150,16 @@ bool CBinds::OnInput(const IInput::CEvent &Event)
|
|||
Handled = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Repeat active bind while key is held down
|
||||
// Have to check for nullptr again because the previous execute can unbind itself
|
||||
if(m_aapKeyBindings[ActiveBind->m_ModifierMask][ActiveBind->m_Key])
|
||||
{
|
||||
Console()->ExecuteLineStroked(1, m_aapKeyBindings[ActiveBind->m_ModifierMask][ActiveBind->m_Key]);
|
||||
}
|
||||
Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
if(Event.m_Flags & IInput::FLAG_RELEASE)
|
||||
|
|
Loading…
Reference in a new issue