rawaccel/grapher/Models/Mouse/PointData.cs
a1xd 0e60e22b73 filter raw input based on id
use device id (from device instance) over first hardware id
use buffered method for all ioctls
update gui/DeviceIDManager to match driver behavior
respond to device change events
desync MouseData and PointData accessors
2021-01-12 17:01:18 -05:00

40 lines
707 B
C#

using System;
namespace grapher.Models.Mouse
{
public class PointData
{
#region Constructors
public PointData()
{
X = new double[] { 0.01 };
Y = new double[] { 0.01 };
}
#endregion Constructors
#region Properties
private double[] X { get; set; }
private double[] Y { get; set; }
public void Set(double x, double y)
{
X[0] = x;
Y[0] = y;
}
#endregion Properties
#region Methods
public void Get(out double[] x, out double[] y)
{
x = X;
y = Y;
}
#endregion Methods
}
}