rawaccel/grapher/Models/Mouse/MouseData.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
627 B
C#

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