fixup! fixup! Disabled InputCommand processing while you fiddle with editor UI elements

This commit is contained in:
2016-03-07 19:59:57 +01:00
parent 3fda25b604
commit 7b0f887332
+2 -2
View File
@@ -64,7 +64,7 @@ void InputProxy::Process(bool suppressNewEvents /*= false*/)
e.Value = currentValue;
if (!suppressNewEvents || e.Value == 0) {
m_EventBroker->Publish(e);
LOG_DEBUG("Input: Published command %s=%f for player %i", e.Command.c_str(), e.Value, e.PlayerID);
//LOG_DEBUG("Input: Published command %s=%f for player %i", e.Command.c_str(), e.Value, e.PlayerID);
}
m_LastCommandValues[command] = currentValue;
}
@@ -82,7 +82,7 @@ void InputProxy::Process(bool suppressNewEvents /*= false*/)
//e.Value = std::max(-1.f, std::min(e.Value, 1.f));
if (!suppressNewEvents || e.Value == 0) {
m_EventBroker->Publish(e);
LOG_DEBUG("Input: Published command %s=%f for player %i", e.Command.c_str(), e.Value, e.PlayerID);
//LOG_DEBUG("Input: Published command %s=%f for player %i", e.Command.c_str(), e.Value, e.PlayerID);
}
}
m_CommandQueue.clear();