summaryrefslogtreecommitdiffstats
path: root/tdecore
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:46:51 +0200
commitcc4f1996df344ff06b34931a362037af25a66ef9 (patch)
treea1618f4176bdaab48cd59e73bdb02a258d12ceda /tdecore
parentd1280c31d9394e157c10d1d9a493763f03c3d285 (diff)
downloadtdelibs-cc4f1996df344ff06b34931a362037af25a66ef9.tar.gz
tdelibs-cc4f1996df344ff06b34931a362037af25a66ef9.zip
tdehwlib: Add a rule for classifying remote control devices
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdecore')
-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 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