public override void RightMouseUp(NSEvent theEvent) { var p = ConvertPointFromView(theEvent.LocationInWindow, null); ButtonEventArgs args = new ButtonEventArgs(); args.X = p.X; args.Y = p.Y; args.Button = PointerButton.Right; Toolkit.Invoke(delegate { eventSink.OnButtonReleased(args); }); }
void HandleWidgetButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args) { var a = new ButtonEventArgs(); a.X = args.Event.X; a.Y = args.Event.Y; a.Button = (int)args.Event.Button; EventSink.OnButtonReleased(a); }
public override void MouseUp(NSEvent theEvent) { var p = ConvertPointFromView(theEvent.LocationInWindow, null); ButtonEventArgs args = new ButtonEventArgs(); args.X = p.X; args.Y = p.Y; args.Button = theEvent.ButtonNumber + 1; eventSink.OnButtonReleased(args); }