Example #1
0
        //=======================
        // Methods
        //=======================

        //-----------------------
        // returns true if the current gizmo was selected.
        public bool MouseDown(Bootstrap.Ray ray, int mouseX, int mouseY)
        {
            // set the mouse down flag to true if we're handling the current
            // event.
            _mouseDown = _currentGizmo.MouseDown(ray, mouseX, mouseY);
            return(_mouseDown);
        }
Example #2
0
 //-----------------------
 public void MouseUp(Bootstrap.Ray ray, int mouseX, int mouseY)
 {
     if (_mouseDown)
     {
         _currentGizmo.MouseUp(ray, mouseX, mouseY);
         _mouseDown = false;
     }
 }
Example #3
0
 //-----------------------
 public void MouseMove(Bootstrap.Ray ray, int mouseX, int mouseY)
 {
     _currentGizmo.MouseMove(ray, mouseX, mouseY, _mouseDown);
 }