public EditorInputListener() { _mouseEventMap = new Dictionary <EventType, List <Action> >(); AddMouseHandler(EventType.MouseDown, () => MouseDown.InvokeSafe(new EditorMouseEvent())); AddMouseHandler(EventType.MouseUp, () => MouseUp.InvokeSafe(new EditorMouseEvent())); AddMouseHandler(EventType.MouseDrag, () => MouseDragged.InvokeSafe(new EditorMouseEvent())); AddMouseHandler(EventType.MouseMove, () => MouseMoved.InvokeSafe(new EditorMouseEvent())); AddMouseHandler(EventType.ContextClick, () => ContextClicked.InvokeSafe()); }