mirror of
https://github.com/vale981/VoiDPlugins
synced 2025-03-04 16:51:38 -05:00
Prepare MeLInterp
This commit is contained in:
parent
9ecf501eec
commit
8e35f94af9
1 changed files with 4 additions and 4 deletions
|
@ -2,20 +2,20 @@
|
|||
|
||||
using System.Numerics;
|
||||
using OpenTabletDriver.Plugin.Attributes;
|
||||
using OpenTabletDriver.Plugin.Tablet;
|
||||
using OpenTabletDriver.Plugin.Tablet.Interpolator;
|
||||
using OTDPlugins.MeL.Core;
|
||||
|
||||
namespace OTDPlugins.MeL
|
||||
{
|
||||
[PluginName("MeL")]
|
||||
public class MeLInterp : IInterpolator
|
||||
public class MeLInterp : Interpolator
|
||||
{
|
||||
public void NewReport(Vector2 point, uint pressure)
|
||||
public override void NewReport(Vector2 point, uint pressure)
|
||||
{
|
||||
Core.Add(point);
|
||||
}
|
||||
|
||||
public void Interpolate(InterpolatorArgs output)
|
||||
public override void Interpolate(InterpolatorArgs output)
|
||||
{
|
||||
if (Core.IsReady)
|
||||
output.Position = Core.Predict(Core.TimeNow, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue