Enable touchscreen discovery on VxWorks
Change-Id: I350551c398608b52c8478499aa21303916b77afa Reviewed-by: Karim Pinter <karim.pinter@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
156752917d
commit
5e95e2df61
@ -79,12 +79,20 @@ bool QDeviceDiscoveryVxWorks::checkDeviceType(const QString &device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_types & Device_Mouse) {
|
if (m_types & Device_Mouse) {
|
||||||
if ((devCap & EV_DEV_REL) && (devCap & EV_DEV_KEY)) {
|
if ((devCap & EV_DEV_REL) && (devCap & EV_DEV_KEY) && !(devCap & EV_DEV_ABS)) {
|
||||||
qCDebug(lcDD) << "DeviceDiscovery found mouse at" << device;
|
qCDebug(lcDD) << "DeviceDiscovery found mouse at" << device;
|
||||||
QT_CLOSE(fd);
|
QT_CLOSE(fd);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((m_types & (Device_Touchpad | Device_Touchscreen))) {
|
||||||
|
if ((m_types & Device_Touchscreen) && (devCap & EV_DEV_ABS && (devCap & EV_DEV_KEY))) {
|
||||||
|
qCDebug(lcDD) << "DeviceDiscovery found touchscreen at" << device;
|
||||||
|
QT_CLOSE(fd);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
QT_CLOSE(fd);
|
QT_CLOSE(fd);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user