diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-06 16:26:38 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-06 16:26:38 +0200 |
| commit | e632bf176b04968ca6a22f6e5d5f1a7bf77b6fa6 (patch) | |
| tree | aa7eda563cb62c9bf937bbbdb468a55168fe73b7 /src/config/ConfigManager.hpp | |
| parent | 41358c6fb579e440ccb72bb79a7bfb859944b3a6 (diff) | |
config: fix reading touchpad values to non-touchpad per-device cfgs
Diffstat (limited to 'src/config/ConfigManager.hpp')
| -rw-r--r-- | src/config/ConfigManager.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/ConfigManager.hpp b/src/config/ConfigManager.hpp index ea824a32..cd297ed3 100644 --- a/src/config/ConfigManager.hpp +++ b/src/config/ConfigManager.hpp @@ -167,9 +167,9 @@ class CConfigManager { void setInt(const std::string&, int); void setString(const std::string&, const std::string&); - int getDeviceInt(const std::string&, const std::string&); - float getDeviceFloat(const std::string&, const std::string&); - std::string getDeviceString(const std::string&, const std::string&); + int getDeviceInt(const std::string&, const std::string&, std::optional<bool> touchpad = {}); + float getDeviceFloat(const std::string&, const std::string&, std::optional<bool> touchpad = {}); + std::string getDeviceString(const std::string&, const std::string&, std::optional<bool> touchpad = {}); bool deviceConfigExists(const std::string&); bool shouldBlurLS(const std::string&); @@ -262,7 +262,7 @@ class CConfigManager { void applyUserDefinedVars(std::string&, const size_t); void loadConfigLoadVars(); SConfigValue getConfigValueSafe(const std::string&); - SConfigValue getConfigValueSafeDevice(const std::string&, const std::string&); + SConfigValue getConfigValueSafeDevice(const std::string&, const std::string&, std::optional<bool> touchpad); void parseLine(std::string&); void configSetValueSafe(const std::string&, const std::string&); void handleDeviceConfig(const std::string&, const std::string&); |
