The input logging can now be excluded from the debug output using an option in es_settings.xml

This commit is contained in:
Leon Styhre 2021-06-22 17:42:35 +02:00
parent 64e14be4ee
commit 942e3ca5bf
2 changed files with 5 additions and 1 deletions

View file

@ -294,6 +294,7 @@ void Settings::setDefaults()
// but that are not configurable via the GUI.
//
mBoolMap["DebugSkipInputLogging"] = { false, false };
mStringMap["ROMDirectory"] = { "", "" };
mStringMap["UIMode_passkey"] = { "uuddlrlrba", "uuddlrlrba" };

View file

@ -147,7 +147,10 @@ void Window::input(InputConfig* config, Input input)
{
mTimeSinceLastInput = 0;
if (Settings::getInstance()->getBool("Debug"))
// The DebugSkipInputLogging option has to be set manually in es_settings.xml as
// it does not have any settings menu entry.
if (Settings::getInstance()->getBool("Debug") &&
!Settings::getInstance()->getBool("DebugSkipInputLogging"))
logInput(config, input);
if (mMediaViewer && mRenderMediaViewer) {