SetTouchCapture() 공개 메소드

public SetTouchCapture ( Actor actor, int pointer ) : void
actor Actor
pointer int
리턴 void
예제 #1
0
        public void CaptureTouch(int pointer)
        {
            if (Stage == null)
            {
                throw new InvalidOperationException("Only an actor attached to a Stage can capture devices.");
            }

            Stage.SetTouchCapture(this, pointer);
        }
예제 #2
0
        public void ReleaseTouchCapture(int pointer)
        {
            if (Stage == null)
            {
                throw new InvalidOperationException("Only an actor attached to a Stage can capture devices.");
            }

            if (Stage.GetTouchCapture(pointer) != this)
            {
                return;
            }

            Stage.SetTouchCapture(null, pointer);
        }