Send key off when disabled only once. (fixes space bar not responding)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user