input: fix device configs for pointer devices

This commit is contained in:
Vaxry 2026-04-26 23:29:18 +01:00
parent 99a6c5f2e2
commit a5baf45d69
No known key found for this signature in database

View file

@ -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;