mirror of
https://github.com/RawAccelOfficial/rawaccel.git
synced 2025-05-12 10:57:10 +02:00
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
40 lines
707 B
C#
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
|
|
}
|
|
}
|