private void RaiseEvent(PointerInputDelegate handler, Vector2 pos, Vector2 lastPos, int button)
 {
     if (handler != null)
     {
         handler(pos, lastPos, button);
     }
 }
Exemple #2
0
        protected override void SetupEventDelegates()
        {
            base.SetupEventDelegates();

            this.pointerInputDownDelegate      = eventReceiver.PointerInputDown;
            this.pointerInputDelegate          = eventReceiver.PointerInput;
            this.pointerInputUpDelegate        = eventReceiver.PointerInputUp;
            this.pointerInputTimeClickDelegate = eventReceiver.PointerInputTimeClick;
        }