aboutsummaryrefslogtreecommitdiff
path: root/lib/driver/rcinput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/driver/rcinput.cpp')
-rw-r--r--lib/driver/rcinput.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/driver/rcinput.cpp b/lib/driver/rcinput.cpp
index 0aada8df..e593087d 100644
--- a/lib/driver/rcinput.cpp
+++ b/lib/driver/rcinput.cpp
@@ -83,9 +83,13 @@ eRCDeviceInputDev::eRCDeviceInputDev(eRCInputEventDriver *driver)
break;
}
}
- driver->setExclusive(!iskeyboard);
+ setExclusive(true);
eDebug("Input device \"%s\" is %sa keyboard.", id.c_str(), iskeyboard ? "" : "not ");
+}
+void eRCDeviceInputDev::setExclusive(bool b)
+{
+ driver->setExclusive(!iskeyboard && b);
}
const char *eRCDeviceInputDev::getDescription() const