//default event dispatching public virtual void Default_MouseMove(object sender, MouseArg e) { if (CheckMouseHandler(e)) { MouseHandler = MouseHandler.MouseMove(sender, e); } }
public void Default_MouseUp(object sender, MouseArg e) { if (CheckMouseHandler(e)) { MouseHandler = MouseHandler.MouseUp(sender, e); } }
private void InitMouse() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { _mouseHandler = new DesktopMouseEventHandler(this); } _mouseHandler.OnMouseDown += (o, e) => { }; _mouseHandler.OnMouseMove += (o, e) => { }; _mouseHandler.OnMouseUp += (o, e) => { }; }
public void Default_MouseDown(object sender, MouseArg e) { //if there is a mouse handler, return if (MouseHandler != null) { return; } MouseHandler = GetMouseHandler(sender, e); if (CheckMouseHandler(e)) { MouseHandler = MouseHandler.MouseDown(sender, e); } }