fix stuck keys after turning off monkey input
This commit is contained in:
@@ -60,7 +60,11 @@ int GetRandomKeyboadKey()
|
|||||||
void InputHandler_MonkeyKeyboard::Update(float fDeltaTime)
|
void InputHandler_MonkeyKeyboard::Update(float fDeltaTime)
|
||||||
{
|
{
|
||||||
if( !PREFSMAN->m_bMonkeyInput )
|
if( !PREFSMAN->m_bMonkeyInput )
|
||||||
|
{
|
||||||
|
// End the previous key
|
||||||
|
ButtonPressed(m_diLast, false);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
float fSecsAgo = m_timerPressButton.Ago();
|
float fSecsAgo = m_timerPressButton.Ago();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user