From e6d10a418ad967b2e612c4c973451b343231aa38 Mon Sep 17 00:00:00 2001 From: kuuube Date: Wed, 12 Jan 2022 13:32:48 -0500 Subject: [PATCH] Fix pressure issues with other filters --- Kuuube's_Chatter_Exterminator/Chatter_Exterminator_Smooth.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Kuuube's_Chatter_Exterminator/Chatter_Exterminator_Smooth.cs b/Kuuube's_Chatter_Exterminator/Chatter_Exterminator_Smooth.cs index b8c7eeb..3479fe2 100644 --- a/Kuuube's_Chatter_Exterminator/Chatter_Exterminator_Smooth.cs +++ b/Kuuube's_Chatter_Exterminator/Chatter_Exterminator_Smooth.cs @@ -20,6 +20,7 @@ public Kuuube_s_CHATTER_EXTERMINATOR_SMOOTH() { } private readonly float _AntichatterOffsetY = 15; private readonly float _Xoffset = 1.96f; private readonly float _FuncStretch = 1.7f; + private uint pressure; public Vector2 Filter(Vector2 calcTarget) { @@ -56,6 +57,7 @@ protected override void ConsumeState() if (State is ITabletReport report) { this.targetPos = report.Position; + this.pressure = report.Pressure; calcTarget = targetPos; } else @@ -67,6 +69,7 @@ protected override void UpdateState() if (State is ITabletReport report) { report.Position = Filter(calcTarget); + report.Pressure = this.pressure; State = report; }