From cc4f1996df344ff06b34931a362037af25a66ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 17 Jun 2017 12:46:51 +0200 Subject: tdehwlib: Add a rule for classifying remote control devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdecore/tdehw/tdehardwaredevices.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index 3cdca9b6e..c5635e7c7 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -1940,6 +1940,10 @@ TDEGenericDevice* TDEHardwareDevices::classifyUnknownDevice(udev_device* dev, TD if (syspath_tail.startsWith("input")) { if (!device) device = new TDEInputDevice(TDEGenericDeviceType::Input); } + // Pull out remote-control devices and stuff them under Input + if (devicesubsystem == "rc") { + if (!device) device = new TDEInputDevice(TDEGenericDeviceType::Input); + } // Check for keyboard // Linux doesn't actually ID the keyboard device itself as such, it instead IDs the input device that is underneath the actual keyboard itseld -- cgit v1.2.3