aboutsummaryrefslogtreecommitdiff
path: root/lib/driver/rc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/driver/rc.cpp')
-rw-r--r--lib/driver/rc.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/driver/rc.cpp b/lib/driver/rc.cpp
index c7acd113..8dab0201 100644
--- a/lib/driver/rc.cpp
+++ b/lib/driver/rc.cpp
@@ -127,6 +127,16 @@ std::string eRCInputEventDriver::getDeviceName()
return name;
}
+void eRCInputEventDriver::setExclusive(bool b)
+{
+ if (handle >= 0)
+ {
+ int grab = b;
+ if (::ioctl(handle, EVIOCGRAB, &grab) < 0)
+ perror("EVIOCGRAB");
+ }
+}
+
eRCInputEventDriver::~eRCInputEventDriver()
{
if (handle>=0)