LWFObject.UpdateLWF C# (CSharp) Method

UpdateLWF() public method

public UpdateLWF ( float tick, int pointX = Int32.MinValue, int pointY = Int32.MinValue, bool press = false, bool release = false ) : void
tick float
pointX int
pointY int
press bool
release bool
return void
    public virtual void UpdateLWF(float tick, int pointX = Int32.MinValue,
		int pointY = Int32.MinValue, bool press = false, bool release = false)
    {
        if (lwf == null)
            return;

        if (lwf.interactive) {
            if (pointX != Int32.MinValue && pointY != Int32.MinValue) {
                lwf.InputPoint(pointX, pointY);
                if (lwf == null)
                    return;
            }
            if (press) {
                lwf.InputPress();
                if (lwf == null)
                    return;
            }
            if (release)
                lwf.InputRelease();
        }

        if (lwf == null)
            return;

        if (resumeCount > 0)
            lwf.Exec(tick);

        if (lwf == null)
            return;

        lwf.Render();
    }