Otherwise the pressure builds up to the maximum and stays there, even when the pen is lifted off the tablet. Same goes for tilt, wheel and rotation/throttle
https://sourceforge.net/tracker/?func=detail&atid=525124&aid=2996451&group_id=69596 Signed-off-by: Peter Hutterer <[email protected]> --- Changes to v1: - get the delta from the other valuators too, otherwise they build up. src/wcmCommon.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index 17fe257..dbf1f94 100644 --- a/src/wcmCommon.c +++ b/src/wcmCommon.c @@ -837,6 +837,17 @@ void wcmSendEvents(LocalDevicePtr local, const WacomDeviceState* ds) { x -= priv->oldX; y -= priv->oldY; + z -= priv->oldZ; + if (IsCursor(priv)) + { + v3 -= priv->oldRot; + v4 -= priv->oldThrottle; + } else + { + v3 -= priv->oldTiltX; + v4 -= priv->oldTiltY; + } + v5 -= priv->oldWheel; } if (type != PAD_ID) -- 1.6.5.2 ------------------------------------------------------------------------------ _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
