summaryrefslogtreecommitdiff
path: root/grapher/Models/Mouse/PointData.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-08-13 20:56:41 -0700
committerJacob Palecki <[email protected]>2020-08-13 20:56:41 -0700
commit32323636b4b5390c114fc2a6d845b7621a983cdc (patch)
tree01d7df8f55e5a1cce90617fd876eaf994eb26846 /grapher/Models/Mouse/PointData.cs
parentAll works smoothly (diff)
downloadrawaccel-32323636b4b5390c114fc2a6d845b7621a983cdc.tar.xz
rawaccel-32323636b4b5390c114fc2a6d845b7621a983cdc.zip
Fix initial points, add poll time constant
Diffstat (limited to 'grapher/Models/Mouse/PointData.cs')
-rw-r--r--grapher/Models/Mouse/PointData.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/grapher/Models/Mouse/PointData.cs b/grapher/Models/Mouse/PointData.cs
index d0273d5..12a6e73 100644
--- a/grapher/Models/Mouse/PointData.cs
+++ b/grapher/Models/Mouse/PointData.cs
@@ -29,18 +29,13 @@ namespace grapher.Models.Mouse
}
}
- public (double[], double[]) Get()
+ public void Get(out double[] x, out double[] y)
{
- double[] xRet;
- double[] yRet;
-
lock(Lock)
{
- xRet = X;
- yRet = Y;
+ x = X;
+ y = Y;
}
-
- return (xRet, yRet);
}
}
}