Esempio n. 1
0
 void ProcessPointerDown <T>(PointerEventBase <T> evt) where T : PointerEventBase <T>, new()
 {
     if (evt.button == (int)MouseButton.LeftMouse)
     {
         if (visualInput.ContainsPoint(visualInput.WorldToLocal(evt.originalMousePosition)))
         {
             ShowMenu();
             evt.StopPropagation();
         }
     }
 }
 void ProcessPointerDown <T>(PointerEventBase <T> evt) where T : PointerEventBase <T>, new()
 {
     if (evt.button == (int)MouseButton.LeftMouse)
     {
         if (ContainsPointer(evt.pointerId))
         {
             ShowMenu();
             evt.StopPropagation();
         }
     }
 }