summaryrefslogtreecommitdiff
path: root/src/config/ConfigManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-19 19:33:13 +0200
committerGitHub <noreply@github.com>2022-04-19 19:33:13 +0200
commitb8d88cff7933475b2dc310e741f8fa07c96c8d0d (patch)
tree86a5ff14d933e9a5af0e63909760970a2c15522f /src/config/ConfigManager.cpp
parent08ee14b4a0a93793f0f65295056889597ea8af56 (diff)
parentb7bcd5cb8f2fda4e2ef5c18907eb3c4d9fa73e8a (diff)
Merge pull request #47 from sixels/input_config
Add more input configurations
Diffstat (limited to 'src/config/ConfigManager.cpp')
-rw-r--r--src/config/ConfigManager.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index b2af4eea..74bc2fab 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;
@@ -260,7 +263,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;
}