Send key off when disabled only once. (fixes space bar not responding)

This commit is contained in:
Ben Anderson
2005-10-13 01:34:06 +00:00
parent 8473727ea0
commit f83eb0a2ca
@@ -59,13 +59,20 @@ int GetRandomKeyboadKey()
void InputHandler_MonkeyKeyboard::Update(float fDeltaTime)
{
static bool wasRunning = false;
if( !PREFSMAN->m_bMonkeyInput )
{
// End the previous key
ButtonPressed(m_diLast, false);
if( wasRunning )
{
// End the previous key
ButtonPressed(m_diLast, false);
wasRunning = false;
}
InputHandler::UpdateTimer();
return;
}
wasRunning = true;
float fSecsAgo = m_timerPressButton.Ago();