OS X: correct tablet airbrush tangentialPressure to range -1..1
The driver sends values in the range 0..1, but we want the "center" value to be 0. This correction makes tangentialPressure consistent between Linux, Windows and OS X. Task-number: QTBUG-40469 Change-Id: Ia4aa777efdf015c2802b945f6ca7a8e442bbf5fc Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
parent
b5ce3d504c
commit
6c1a12c558
@ -1001,7 +1001,7 @@ Q_GLOBAL_STATIC(QCocoaTabletDeviceDataHash, tabletDeviceDataHash)
|
||||
z = [theEvent absoluteZ];
|
||||
|
||||
if (deviceData.capabilityMask & 0x0800)
|
||||
tangentialPressure = [theEvent tangentialPressure];
|
||||
tangentialPressure = ([theEvent tangentialPressure] * 2.0) - 1.0;
|
||||
|
||||
rotation = [theEvent rotation];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user