Example #1
0
 //default event dispatching
 public virtual void Default_MouseMove(object sender, MouseArg e)
 {
     if (CheckMouseHandler(e))
     {
         MouseHandler = MouseHandler.MouseMove(sender, e);
     }
 }
Example #2
0
 public void Default_MouseUp(object sender, MouseArg e)
 {
     if (CheckMouseHandler(e))
     {
         MouseHandler = MouseHandler.MouseUp(sender, e);
     }
 }
Example #3
0
        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) => { };
        }
Example #4
0
        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);
            }
        }