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

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