Пример #1
0
 protected override void OnMouseWheel(MouseEventArgs e)
 {
     if (CanBeControlled)
     {
         if (e.Delta > 0)
         {
             FieldRenderer.ZoomIn(WorldMousePosition);
         }
         else
         {
             FieldRenderer.ZoomOut(WorldMousePosition);
         }
     }
 }