From e8eb8e9694379204f4b9143ca6b33db48809df7f Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 22 Dec 2009 15:33:20 +0100 Subject: lib/driver/rc*: open remote control input devices in exclussive mode... so the keycodes are not supplied to the linux console --- lib/driver/rc.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/driver/rc.cpp') 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) -- cgit v1.2.3