public void SetPosition(Vector2 pos) { var newPos = pos / ScreenToVMulti; Report.X = (ushort)newPos.X; Report.Y = (ushort)newPos.Y; VMultiDev.Write(Report.ToBytes()); }
public void SetPosition(Vector2 pos) { var X = (ushort)pos.X; var Y = (ushort)pos.Y; Report.X = (byte)(X - prevX); Report.Y = (byte)(Y - prevY); prevX = X; prevY = Y; VMultiDev.Write(Report.ToBytes()); }
public void SetPosition(Vector2 pos) { Report.X = (ushort)(pos.X / Width * 32767); Report.Y = (ushort)(pos.Y / Height * 32767); VMultiDev.Write(Report.ToBytes()); }