summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index a4df12fe..f0314e0d 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -1260,7 +1260,7 @@ void CInputManager::setPointerConfigs() {
const auto HASCONFIG = Config::mgr()->deviceConfigExists(devname);
if (HASCONFIG) {
- const auto ENABLED = Config::mgr()->getDeviceInt(devname, "enabled");
+ const auto ENABLED = HASCONFIG && Config::mgr()->deviceConfigExplicitlySet(devname, "enabled") ? Config::mgr()->getDeviceInt(devname, "enabled") : true;
if (ENABLED && !m->m_connected) {
g_pPointerManager->attachPointer(m);
m->m_connected = true;