diff options
| author | unrealhoang <unrealhoang@gmail.com> | 2023-09-06 21:54:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-06 14:54:48 +0200 |
| commit | f90a009e9387c3132721e9f6c9b4308876519094 (patch) | |
| tree | 253d0729778424f0c67c2339633a378db59bfed6 /src/config/ConfigManager.cpp | |
| parent | 8b9cc9a8dbebc0dc988a97d95c49cce2993529e1 (diff) | |
input/config: add button scroll lock (#3189)
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index cd98dd1a..5aea669b 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -201,6 +201,7 @@ void CConfigManager::setDefaultVars() { configValues["input:left_handed"].intValue = 0; configValues["input:scroll_method"].strValue = STRVAL_EMPTY; configValues["input:scroll_button"].intValue = 0; + configValues["input:scroll_button_lock"].intValue = 0; configValues["input:touchpad:natural_scroll"].intValue = 0; configValues["input:touchpad:disable_while_typing"].intValue = 1; configValues["input:touchpad:clickfinger_behavior"].intValue = 0; @@ -265,6 +266,7 @@ void CConfigManager::setDeviceDefaultVars(const std::string& dev) { cfgValues["left_handed"].intValue = 0; cfgValues["scroll_method"].strValue = STRVAL_EMPTY; cfgValues["scroll_button"].intValue = 0; + cfgValues["scroll_button_lock"].intValue = 0; cfgValues["transform"].intValue = 0; cfgValues["output"].strValue = STRVAL_EMPTY; cfgValues["enabled"].intValue = 1; // only for mice / touchpads |
