Vector2 getScreenPoint(Tuio2DCursor data)
    {
        Vector2 position = new Vector2(data.PositionX, data.PositionY);

        float x1 = getScreenPoint(position.x,
                                  ScreenWidth, false);
        float y1 = getScreenPoint(position.y,
                                  ScreenHeight, true);

        Vector2 t = new Vector2(x1, y1);

        return(t);
    }
    Tuio.Touch buildTouch(Tuio2DCursor cursor)
    {
        TouchProperties prop;

        prop.Acceleration = cursor.Acceleration;
        prop.VelocityX    = cursor.VelocityX;
        prop.VelocityY    = cursor.VelocityY;

        Vector2 p   = getScreenPoint(cursor);
        Vector2 raw = getRawPoint(cursor);

        Tuio.Touch t = new Tuio.Touch(cursor.SessionID, p, raw);
        t.Properties = prop;

        return(t);
    }
    Vector2 getRawPoint(Tuio2DCursor data)
    {
        Vector2 position = new Vector2(data.PositionX, data.PositionY);

        return(position);
    }