Beispiel #1
0
        public void SetPosition(Vector2 pos)
        {
            var newPos = pos / ScreenToVMulti;

            Report.X = (ushort)newPos.X;
            Report.Y = (ushort)newPos.Y;
            VMultiDev.Write(Report.ToBytes());
        }
Beispiel #2
0
        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());
        }
Beispiel #3
0
 public void SetPosition(Vector2 pos)
 {
     Report.X = (ushort)(pos.X / Width * 32767);
     Report.Y = (ushort)(pos.Y / Height * 32767);
     VMultiDev.Write(Report.ToBytes());
 }