/// <summary>
        /// Sets the stylus data, after connection
        /// </summary>
        /// <param name="e"></param>
        public void SetStylusData(StylusEventArgs e)
        {
            if (_input != null && (_receivingdata))
            {
                _receivingdata = false;
#if WINDOWS_UWP
                _positionCalculator.StylusData = e;
                StylusButtonData Button1 = new StylusButtonData {
                    SourceID = 1, Pressure = _positionCalculator.Button1
                };
                _input.StylusActionButtonData = Button1;
                StylusButtonData Button2 = new StylusButtonData {
                    SourceID = 0, Pressure = _positionCalculator.Button2
                };
                _input.StylusBackButtonData = Button2;
                _input.StylusTransformRaw   = new StylusTransformData {
                    Position = _positionCalculator.Position
                };
#endif
#if UNITY_EDITOR
                Vector3          Position = new Vector3(e.StylusData.Position.X, e.StylusData.Position.Y, e.StylusData.Position.Z);
                StylusButtonData Button1  = new StylusButtonData {
                    SourceID = 1, Pressure = e.StylusData.ActionButton
                };
                StylusButtonData Button2 = new StylusButtonData {
                    SourceID = 0, Pressure = e.StylusData.BackButton
                };
                _input.StylusTransformRaw = new StylusTransformData {
                    Position = Position
                };
                _input.StylusActionButtonData = Button1;
                _input.StylusBackButtonData   = Button2;
#endif
            }
        }
 /// <summary>
 /// Sets the stylus data, after connection
 /// </summary>
 /// <param name="e"></param>
 public void SetStylusData(StylusEventArgs e)
 {
     if (_input != null && (_receivingdata))
     {
         Vector3          Position = new Vector3(e.StylusData.Position.X, e.StylusData.Position.Y, e.StylusData.Position.Z);
         StylusButtonData Button1  = new StylusButtonData {
             SourceID = 1, Pressure = e.StylusData.ActionButton
         };
         StylusButtonData Button2 = new StylusButtonData {
             SourceID = 0, Pressure = e.StylusData.BackButton
         };
         _input.StylusTransformRaw = new StylusTransformData {
             Position = Position
         };
         _input.StylusActionButtonData = Button1;
         _input.StylusBackButtonData   = Button2;
     }
     _receivingdata = false;
 }