From 03624e206009e5c1c14a2ad48e37865ec7741e00 Mon Sep 17 00:00:00 2001 From: Sixels Date: Tue, 19 Apr 2022 13:42:26 -0300 Subject: Handle subcategories --- src/config/ConfigManager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 30585502..cf2ad8fe 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -260,7 +260,14 @@ void CConfigManager::parseLine(std::string& line) { if (line.find(" {") != std::string::npos) { auto cat = line.substr(0, line.find(" {")); transform(cat.begin(), cat.end(), cat.begin(), ::tolower); - currentCategory = cat; + if (currentCategory.length() != 0) { + currentCategory.push_back(':'); + currentCategory.append(cat); + } + else { + currentCategory = cat; + } + return; } -- cgit v1.2.3 From 6719574f0cbe643bc213630ccc0d6ff3dc6faf59 Mon Sep 17 00:00:00 2001 From: Sixels Date: Tue, 19 Apr 2022 13:51:53 -0300 Subject: Add input options to config --- src/config/ConfigManager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index cf2ad8fe..4d8affec 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -55,6 +55,9 @@ void CConfigManager::setDefaultVars() { configValues["input:kb_options"].strValue = ""; configValues["input:kb_rules"].strValue = ""; configValues["input:kb_model"].strValue = ""; + configValues["input:repeat_rate"].intValue = 25; + configValues["input:repeat_delay"].intValue = 600; + configValues["input:touchpad:disable_while_typing"].intValue = 1; configValues["input:follow_mouse"].intValue = 1; -- cgit v1.2.3