public TargetedTouchHandler(ITargetedTouchDelegate @delegate, int priority, bool swallows) : base(priority) { if (@delegate == null) { throw new ArgumentNullException("@delegate"); } _delegate = @delegate; SwallowsTouches = swallows; _claimedTouches = new List<UITouch>(); }
public void AddTargetedDelegate(ITargetedTouchDelegate del, int priority, bool swallowsTouches) { TouchHandler handler = new TargetedTouchHandler(del, priority, swallowsTouches); AddHandler(handler); }