Skip to content

Commit

Permalink
Add an ID for recognition of UGEE tablets
Browse files Browse the repository at this point in the history
Change-Id: I2228ee9d53aa23a2d2cd9970a363d8424e744093
Reviewed-by: Frederik Gladhorn <[email protected]>
Reviewed-by: Shawn Rutledge <[email protected]>
  • Loading branch information
dimula73 authored and ec1oud committed May 7, 2019
1 parent dffad7e commit 48a1273
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ void QXcbConnection::xi2SetupDevice(void *info, bool removeExisting)
} else if (name.contains("uc-logic") && isTablet) {
tabletData.pointerType = QTabletEvent::Pen;
dbgType = QLatin1String("pen");
} else if (name.contains("ugee")) {
isTablet = true;
tabletData.pointerType = QTabletEvent::Pen;
dbgType = QLatin1String("pen");
} else {
isTablet = false;
}
Expand Down

0 comments on commit 48a1273

Please sign in to comment.