Пример #1
0
 void _gamePad_IllegalTouchEvent(object sender, Util.EventArgs <IllegalTouch> e)
 {
     if (IllegalClick != null)
     {
         IllegalClick(this, EventArgs.Empty);
     }
 }
Пример #2
0
 void _gamePad_SingleFingerTouchEvent(object sender, Util.EventArgs <SingleFingerTouch> e)
 {
     if (_actuatorLeft != null)
     {
         var bounds = _actuatorLeft.CalculateAccumulatedFrame();
         if (bounds.Contains(e.Value.Coord))
         {
             Debug.WriteLine("OverlayScene: inside pistonLeft");
             if (LeftActuatorClicked != null)
             {
                 LeftActuatorClicked(this, EventArgs.Empty);
             }
         }
     }
     if (_actuatorRight != null)
     {
         var bounds = _actuatorRight.CalculateAccumulatedFrame();
         if (bounds.Contains(e.Value.Coord))
         {
             Debug.WriteLine("OverlayScene: inside pistonRight");
             if (RightActuatorClicked != null)
             {
                 RightActuatorClicked(this, EventArgs.Empty);
             }
         }
     }
 }