aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Brown <themagnificentmrb@gmail.com>2024-02-14 12:18:02 -0800
committerGarrett Brown <themagnificentmrb@gmail.com>2024-02-14 16:45:55 -0800
commit26f508f88c4cb3e6b0508386e300385f7e977317 (patch)
tree22d950f1f19ab90a7bea60f839f39874d095f744
parentcd50648fd524544bf07f0e0f301bc7a05203fdad (diff)
Revert "[Keyboard] Add keysym to logline"
This reverts commit 2ae4e6325cbf1b44c22bbf97362558ca0149c4de.
-rw-r--r--xbmc/input/keyboard/KeyboardStat.cpp6
-rw-r--r--xbmc/input/keyboard/KeyboardTranslator.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/xbmc/input/keyboard/KeyboardStat.cpp b/xbmc/input/keyboard/KeyboardStat.cpp
index d6784c920c..5e390ee562 100644
--- a/xbmc/input/keyboard/KeyboardStat.cpp
+++ b/xbmc/input/keyboard/KeyboardStat.cpp
@@ -14,7 +14,6 @@
#include "KeyboardStat.h"
#include "ServiceBroker.h"
-#include "input/keyboard/KeyboardTranslator.h"
#include "input/keyboard/KeyboardTypes.h"
#include "input/keyboard/XBMC_keytable.h"
#include "input/keyboard/XBMC_vkeys.h"
@@ -92,9 +91,8 @@ CKey CKeyboardStat::TranslateKey(XBMC_keysym& keysym) const
lockingModifiers |= CKey::MODIFIER_SCROLLLOCK;
CLog::Log(LOGDEBUG,
- "Keyboard: scancode: {:#02x}, sym: {:#04x} ({}), unicode: {:#04x}, modifier: 0x{:x}",
- keysym.scancode, keysym.sym, CKeyboardTranslator::TranslateKeycode(keysym.sym),
- keysym.unicode, keysym.mod);
+ "Keyboard: scancode: {:#02x}, sym: {:#04x}, unicode: {:#04x}, modifier: 0x{:x}",
+ keysym.scancode, keysym.sym, keysym.unicode, keysym.mod);
// The keysym.unicode is usually valid, even if it is zero. A zero
// unicode just means this is a non-printing keypress. The ascii and
diff --git a/xbmc/input/keyboard/KeyboardTranslator.cpp b/xbmc/input/keyboard/KeyboardTranslator.cpp
index 0cbb4871bb..fd79632bbb 100644
--- a/xbmc/input/keyboard/KeyboardTranslator.cpp
+++ b/xbmc/input/keyboard/KeyboardTranslator.cpp
@@ -491,5 +491,5 @@ const char* CKeyboardTranslator::TranslateKeycode(XBMCKey keycode)
break;
}
- return "unknown";
+ return "";
}