From f90a009e9387c3132721e9f6c9b4308876519094 Mon Sep 17 00:00:00 2001 From: unrealhoang Date: Wed, 6 Sep 2023 21:54:48 +0900 Subject: input/config: add button scroll lock (#3189) --- src/config/ConfigManager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config/ConfigManager.cpp') 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 -- cgit v1.2.3