iOS: Fix rotation zero for standard Apple Pencil (not Pro)

Since standard (non-Pro, 1st gen, 2nd gen, and USB-C) Apple Pencils
do not support rotation (barrel roll), the rotation value
should be set to zero.

Task-number: QTBUG-128467
Change-Id: I33511c39cab1fb14a2ef622ab98ce49eb95f3295
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
HIDAKA Takahiro 2024-12-31 02:37:00 +09:00
parent 1accd24216
commit 30c7586392

View File

@ -395,7 +395,7 @@ inline ulong getTimeStamp(UIEvent *event)
// pressure, xTilt, yTilt
pressure, qBound(-60.0, altitudeAngle * azimuth.dx, 60.0), qBound(-60.0, altitudeAngle * azimuth.dy, 60.0),
// tangentialPressure, rotation, z, modifiers
0, azimuthAngle, 0, Qt::NoModifier);
0, 0, 0, Qt::NoModifier);
++i;
}
}