We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca82209 + ce32505 commit 2fcdaacCopy full SHA for 2fcdaac
1 file changed
DevocubFilters/AntiChatter.cs
@@ -112,13 +112,15 @@ public float Latency
112
private float latency = 2.0f;
113
private float weight;
114
private Vector2 position;
115
+ private uint pressure;
116
private Vector2 prevTargetPos, targetPos, calcTarget;
117
118
protected override void ConsumeState()
119
{
120
if (State is ITabletReport report)
121
122
this.targetPos = report.Position * MillimeterScale;
123
+ this.pressure = report.Pressure;
124
125
if (PredictionEnabled)
126
@@ -150,6 +152,7 @@ protected override void UpdateState()
150
152
151
153
154
report.Position = Filter(calcTarget) / MillimeterScale;
155
+ report.Pressure = this.pressure;
156
State = report;
157
}
158
0 commit comments