public override void MouseDown(NSEvent theEvent) { MousePosition = theEvent.LocationInWindow; var pos = MousePosition.ToSKPointFlipY(); phiddle.MouseClicked(pos); NeedsDisplay = true; }
public override void MouseMoved(NSEvent theEvent) { // Check the 'lock' key if tool is locked phiddle.ToolLocked = theEvent.ModifierFlags.HasFlag(NSEventModifierMask.ControlKeyMask); // Update mouse pos and refresh MousePosition = theEvent.LocationInWindow; var pos = MousePosition.ToSKPointFlipY(); phiddle.MouseMoved(pos); NeedsDisplay = true; }