tdehwlib: Add a rule for classifying remote control devices

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit cc4f1996df)
pull/16/head
Slávek Banko 7 years ago
parent b0c326c2d0
commit 2b8dc1971b

@ -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

Loading…
Cancel
Save