aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2018-09-01 21:32:05 +0200
committerMemphiz <memphis@machzwo.de>2018-09-05 16:23:11 +0200
commitf1b7faaf229191a7eb63c6867be449b5913c2a28 (patch)
tree9306111b1f1b1b514035426cb42c933cca3c1bf6
parentb1fde0b2f81cbc5f2944de439761f99a379ebebd (diff)
EventServer/client: - added debug logging for pressed keys and translated actions
-rw-r--r--xbmc/input/InputManager.cpp2
-rw-r--r--xbmc/network/EventClient.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/xbmc/input/InputManager.cpp b/xbmc/input/InputManager.cpp
index b9d8053cea..ac43269b8a 100644
--- a/xbmc/input/InputManager.cpp
+++ b/xbmc/input/InputManager.cpp
@@ -219,6 +219,8 @@ bool CInputManager::ProcessEventServer(int windowId, float frameTime)
m_Mouse.SetActive(false);
+ CLog::Log(LOGDEBUG, "EventServer: key %d translated to action %s", wKeyID, actionName);
+
return ExecuteInputAction(CAction(actionID, fAmount, 0.0f, actionName));
}
else
diff --git a/xbmc/network/EventClient.cpp b/xbmc/network/EventClient.cpp
index 298f21c327..7e5a60ccda 100644
--- a/xbmc/network/EventClient.cpp
+++ b/xbmc/network/EventClient.cpp
@@ -26,6 +26,7 @@
#include "guilib/LocalizeStrings.h"
#include "utils/StringUtils.h"
#include "ServiceBroker.h"
+#include "utils/log.h"
using namespace EVENTCLIENT;
using namespace EVENTPACKET;
@@ -388,6 +389,8 @@ bool CEventClient::OnPacketBUTTON(CEventPacket *packet)
float famount = 0;
bool active = (flags & PTB_DOWN) ? true : false;
+
+ CLog::Log(LOGDEBUG, "EventClient: button code %d %s", bcode, active ? "pressed" : "released");
if(flags & PTB_USE_AMOUNT)
{