diff options
| author | Mihai Fufezan <fufexan@protonmail.com> | 2022-10-05 23:21:22 +0300 |
|---|---|---|
| committer | Mihai Fufezan <fufexan@protonmail.com> | 2022-10-05 23:51:08 +0300 |
| commit | 477ad2dd82a68047ab90616ca3a620b481fc94f8 (patch) | |
| tree | fa20edcd9e5156b8955d95ab416b3a89430219bf /src/config/ConfigManager.cpp | |
| parent | 11ce4689963f52a72817a9395ecccc1b034447a7 (diff) | |
Add accel profile and scroll method
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 07d31e2c..3fea0ea3 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -125,6 +125,7 @@ void CConfigManager::setDefaultVars() { configValues["animations:workspaces"].intValue = 1; configValues["input:sensitivity"].floatValue = 0.f; + configValues["input:accel_profile"].strValue = STRVAL_EMPTY; configValues["input:kb_file"].strValue = STRVAL_EMPTY; configValues["input:kb_layout"].strValue = "us"; configValues["input:kb_variant"].strValue = STRVAL_EMPTY; @@ -138,6 +139,7 @@ void CConfigManager::setDefaultVars() { configValues["input:force_no_accel"].intValue = 0; configValues["input:float_switch_override_focus"].intValue = 1; configValues["input:left_handed"].intValue = 0; + configValues["input:scroll_method"].strValue = STRVAL_EMPTY; configValues["input:touchpad:natural_scroll"].intValue = 0; configValues["input:touchpad:disable_while_typing"].intValue = 1; configValues["input:touchpad:clickfinger_behavior"].intValue = 0; @@ -166,6 +168,7 @@ void CConfigManager::setDeviceDefaultVars(const std::string& dev) { auto& cfgValues = deviceConfigs[dev]; cfgValues["sensitivity"].floatValue = 0.f; + cfgValues["accel_profile"].strValue = STRVAL_EMPTY; cfgValues["kb_file"].strValue = STRVAL_EMPTY; cfgValues["kb_layout"].strValue = "us"; cfgValues["kb_variant"].strValue = STRVAL_EMPTY; @@ -182,6 +185,7 @@ void CConfigManager::setDeviceDefaultVars(const std::string& dev) { cfgValues["tap-to-click"].intValue = 1; cfgValues["drag_lock"].intValue = 0; cfgValues["left_handed"].intValue = 0; + cfgValues["scroll_method"].strValue = STRVAL_EMPTY; } void CConfigManager::setDefaultAnimationVars() { @@ -1126,7 +1130,7 @@ void CConfigManager::loadConfigLoadVars() { // Update the keyboard layout to the cfg'd one if this is not the first launch if (!isFirstLaunch) { g_pInputManager->setKeyboardLayout(); - g_pInputManager->setMouseConfigs(); + g_pInputManager->setPointerConfigs(); } // Calculate the internal vars @@ -1411,7 +1415,7 @@ void CConfigManager::dispatchExecOnce() { // set input, fixes some certain issues g_pInputManager->setKeyboardLayout(); - g_pInputManager->setMouseConfigs(); + g_pInputManager->setPointerConfigs(); // set ws names again for (auto& ws : g_pCompositor->m_vWorkspaces) { |
