mirror of
https://github.com/RawAccelOfficial/rawaccel.git
synced 2025-05-14 05:14:01 +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
627 B
C#
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
|
|
}
|
|
}
|