From df17991b1c3f9f5f8da546f2523e5092e266123a Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 23 Jan 2024 19:15:01 -0500 Subject: input: Allow disabling touchscreen input (#4517) * enable/disable touch device * ConfigManager: update documentation of 'enabled' --- src/config/ConfigManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config/ConfigManager.cpp') diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 402d879e..532a8a38 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -255,6 +255,7 @@ void CConfigManager::setDefaultVars() { configValues["input:touchpad:scroll_factor"].floatValue = 1.f; configValues["input:touchdevice:transform"].intValue = 0; configValues["input:touchdevice:output"].strValue = STRVAL_EMPTY; + configValues["input:touchdevice:enabled"].intValue = 1; configValues["input:tablet:transform"].intValue = 0; configValues["input:tablet:output"].strValue = STRVAL_EMPTY; configValues["input:tablet:region_position"].vecValue = Vector2D(); @@ -320,7 +321,7 @@ void CConfigManager::setDeviceDefaultVars(const std::string& dev) { cfgValues["scroll_points"].strValue = STRVAL_EMPTY; cfgValues["transform"].intValue = 0; cfgValues["output"].strValue = STRVAL_EMPTY; - cfgValues["enabled"].intValue = 1; // only for mice / touchpads + cfgValues["enabled"].intValue = 1; // only for mice, touchpads, and touchdevices cfgValues["region_position"].vecValue = Vector2D(); // only for tablets cfgValues["region_size"].vecValue = Vector2D(); // only for tablets cfgValues["relative_input"].intValue = 0; // only for tablets -- cgit v1.2.3