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); }
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); }