aboutsummaryrefslogtreecommitdiff
path: root/lib/driver/rc.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-12-22 15:33:20 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-12-22 15:33:20 +0100
commite8eb8e9694379204f4b9143ca6b33db48809df7f (patch)
tree05034256bd0b58319eb2390647a2469c83390d1d /lib/driver/rc.cpp
parentf13490a1a66421b08cef893cb89e8f78c5873d05 (diff)
downloadenigma2-e8eb8e9694379204f4b9143ca6b33db48809df7f.tar.gz
enigma2-e8eb8e9694379204f4b9143ca6b33db48809df7f.zip
lib/driver/rc*: open remote control input devices in exclussive mode... so the keycodes are not supplied to the linux console
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)