// Override the button press event from Xsharp. protected override void OnButtonPress(int x, int y, ButtonName button, ModifierMask modifiers) { if (sink != null) { sink.ToolkitMouseDown (DrawingWindow.MapButton(button), DrawingWindow.MapKey(KeyName.XK_VoidSymbol, modifiers), 1, x, y, 0); } }
public void ToolkitMouseDown(ToolkitMouseButtons buttons, ToolkitKeys modifiers, int clicks, int x, int y, int delta) { IToolkitEventSink co = this.mControlWeakRef.Target as IToolkitEventSink; if (null != co) { co.ToolkitMouseDown(buttons, modifiers, clicks, x, y, delta); } }