SetTouchCapture() public method

public SetTouchCapture ( Actor actor, int pointer ) : void
actor Actor
pointer int
return void
Esempio n. 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);
        }
Esempio n. 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);
        }