protected void OnButtonPressEvent(object o, ButtonPressEventArgs args) { Vector2Double position = new Vector2Double(args.Event.X, args.Event.Y); MouseButton button = (MouseButton)args.Event.Button; rootComponent.MouseDown(position, button); }