Support discovery of key evdev devices.
Change-Id: Iac2751b51fb0af9fba181c26ad788f25eb0b02f7 Done-with: Andrew den Exter <andrew.den.exter@jollamobile.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
f956ffa9cc
commit
e48aa2a402
@ -130,8 +130,10 @@ QStringList QDeviceDiscovery::scanConnectedDevices()
|
||||
udev_enumerate_add_match_property(ue, "ID_INPUT_TOUCHPAD", "1");
|
||||
if (m_types & Device_Touchscreen)
|
||||
udev_enumerate_add_match_property(ue, "ID_INPUT_TOUCHSCREEN", "1");
|
||||
if (m_types & Device_Keyboard)
|
||||
if (m_types & Device_Keyboard) {
|
||||
udev_enumerate_add_match_property(ue, "ID_INPUT_KEYBOARD", "1");
|
||||
udev_enumerate_add_match_property(ue, "ID_INPUT_KEY", "1");
|
||||
}
|
||||
if (m_types & Device_Tablet)
|
||||
udev_enumerate_add_match_property(ue, "ID_INPUT_TABLET", "1");
|
||||
|
||||
@ -242,6 +244,9 @@ bool QDeviceDiscovery::checkDeviceType(udev_device *dev)
|
||||
}
|
||||
}
|
||||
|
||||
if ((m_types & Device_Keyboard) && (qstrcmp(udev_device_get_property_value(dev, "ID_INPUT_KEY"), "1") == 0 ))
|
||||
return true;
|
||||
|
||||
if ((m_types & Device_Mouse) && (qstrcmp(udev_device_get_property_value(dev, "ID_INPUT_MOUSE"), "1") == 0))
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user