summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-06-17 12:46:51 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-06-17 12:47:04 +0200
commit2b8dc1971b71e3549292a1286465f741ba08fa49 (patch)
treef86e19c45b53a19b8748e1610642e53e0ea9f327
parentb0c326c2d012b9bf5d764281f344be51cdfafc3f (diff)
downloadtdelibs-2b8dc1971b71e3549292a1286465f741ba08fa49.tar.gz
tdelibs-2b8dc1971b71e3549292a1286465f741ba08fa49.zip
tdehwlib: Add a rule for classifying remote control devices
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit cc4f1996df344ff06b34931a362037af25a66ef9)
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index 2ddb16abb..930a5819f 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -1921,6 +1921,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