Merge pull request #47 from sixels/input_config

Add more input configurations
This commit is contained in:
vaxerski
2022-04-19 19:33:13 +02:00
committed by GitHub
3 changed files with 26 additions and 2 deletions

View File

@@ -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;
}