public GfxTabletPacket(InkEventArgs args) { this.type = EventType.Motion; this.x = (ushort) (args.Position.X * ushort.MaxValue); this.y = (ushort) (args.Position.Y * ushort.MaxValue); this.pressure = (args.Pressure.HasValue) ? (ushort) (args.Pressure.Value * short.MaxValue) : (ushort) short.MaxValue; }
private void OnInkMove(DrawCanvas sender, InkEventArgs e) { networkController.SendInkMove(e); }
public void SendInkMove(InkEventArgs args) { GfxTabletPacket packet = new GfxTabletPacket(args); SendPacket(packet); }