private void OnZoomOut(ActionMapEventArgs e) { if(e.KeyEvent == KeyEvent.OnPress) zoomingOut = true; else if(e.KeyEvent == KeyEvent.OnRelease) zoomingOut = false; }
internal void Invoke(ActionMapEventArgs args) { List <ActionMapEventDelegate> eventDelegates; if (actionmapDelegates.TryGetValue(args.ActionName, out eventDelegates)) { eventDelegates.ForEach(x => x(args)); } }
public void OnActionZoomOut(ActionMapEventArgs e) { if(e.KeyEvent == KeyEvent.OnPress && CurrentZoomLevel <= MaxZoomLevel) CurrentZoomLevel++; }
public void OnActionZoomIn(ActionMapEventArgs e) { if(e.KeyEvent == KeyEvent.OnPress && CurrentZoomLevel > 1) CurrentZoomLevel--; }
internal void Invoke(ActionMapEventArgs args) { List<ActionMapEventDelegate> eventDelegates; if (actionmapDelegates.TryGetValue(args.ActionName, out eventDelegates)) eventDelegates.ForEach(x => x(args)); }