Ejemplo n.º 1
0
 private void OnZoomOut(ActionMapEventArgs e)
 {
     if(e.KeyEvent == KeyEvent.OnPress)
         zoomingOut = true;
     else if(e.KeyEvent == KeyEvent.OnRelease)
         zoomingOut = false;
 }
Ejemplo n.º 2
0
        internal void Invoke(ActionMapEventArgs args)
        {
            List <ActionMapEventDelegate> eventDelegates;

            if (actionmapDelegates.TryGetValue(args.ActionName, out eventDelegates))
            {
                eventDelegates.ForEach(x => x(args));
            }
        }
Ejemplo n.º 3
0
 public void OnActionZoomOut(ActionMapEventArgs e)
 {
     if(e.KeyEvent == KeyEvent.OnPress && CurrentZoomLevel <= MaxZoomLevel)
         CurrentZoomLevel++;
 }
Ejemplo n.º 4
0
 public void OnActionZoomIn(ActionMapEventArgs e)
 {
     if(e.KeyEvent == KeyEvent.OnPress && CurrentZoomLevel > 1)
         CurrentZoomLevel--;
 }
Ejemplo n.º 5
0
 internal void Invoke(ActionMapEventArgs args)
 {
     List<ActionMapEventDelegate> eventDelegates;
     if (actionmapDelegates.TryGetValue(args.ActionName, out eventDelegates))
         eventDelegates.ForEach(x => x(args));
 }