Example #1
0
        private void HandleEventStage()
        {
            if (HandleEvents.refresh)
            {
                return;
            }
            switch (HandleEvents.type)
            {
            case EventType.MouseDown:
                GraphDrawEditor.ClearSelectNode();
                if (HandleEvents.rightMouse)
                {
                    GraphDrawEditor.Instance.ShowEnumPanel(HandleEvents.position);
                }
                HandleEvents.Use();
                break;

            case EventType.MouseUp:
                break;

            case EventType.MouseMove:
                break;

            case EventType.MouseDrag: break;

            case EventType.KeyDown: break;

            case EventType.KeyUp: break;

            case EventType.ScrollWheel:
                SetZoom(HandleEvents.currentEvent.delta.y);
                break;

            case EventType.ValidateCommand: break;

            case EventType.ExecuteCommand: break;

            case EventType.ContextClick:
                GraphDrawEditor.Instance.ShowEnumPanel(HandleEvents.position);
                //e.Use();
                break;
            }
        }