Better logging for received inputs.

Daniel requested that we get some more worthwhile logging in
InputComponent
This commit is contained in:
Tobias Hieta committed 2016-01-07 14:53:15 +01:00
1 parent a7fbd9d644
commit f46a0124ef
4 files changed
+5 -12

No files matched your search

+2 -1
View File
@@ -83,6 +83,8 @@ void InputComponent::remapInput(const QString &source, const QString &keycode, f
// hide mouse if it's visible.
SystemComponent::Get().setCursorVisibility(false);
QLOG_DEBUG() << "Input received: source:" << source << "keycode:" << keycode;
QString action = m_mappings->mapToAction(source, keycode);
if (!action.isEmpty())
{
@@ -119,7 +121,6 @@ void InputComponent::remapInput(const QString &source, const QString &keycode, f
}
else
{
QLOG_DEBUG() << "Sending action:" << action;
emit receivedAction(action);
}
}