Skip to content

Commit

Permalink
Enable touchscreen discovery on VxWorks
Browse files Browse the repository at this point in the history
Change-Id: I350551c398608b52c8478499aa21303916b77afa
Reviewed-by: Karim Pinter <[email protected]>
Reviewed-by: Laszlo Agocs <[email protected]>
  • Loading branch information
Michał Łoś committed Oct 31, 2024
1 parent 1567529 commit 5e95e2d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,20 @@ bool QDeviceDiscoveryVxWorks::checkDeviceType(const QString &device)
}

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;
QT_CLOSE(fd);
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);

Expand Down

0 comments on commit 5e95e2d

Please sign in to comment.