//======================= // 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); }
//----------------------- public void MouseUp(Bootstrap.Ray ray, int mouseX, int mouseY) { if (_mouseDown) { _currentGizmo.MouseUp(ray, mouseX, mouseY); _mouseDown = false; } }
//----------------------- public void MouseMove(Bootstrap.Ray ray, int mouseX, int mouseY) { _currentGizmo.MouseMove(ray, mouseX, mouseY, _mouseDown); }