public override uint MouseWheel(MouseEventArgs e, GL_ControlBase control) { uint var = 0; foreach (IEditableObject obj in GetObjects()) { var |= obj.MouseWheel(e, control); } foreach (AbstractGlDrawable obj in StaticObjects) { var |= obj.MouseWheel(e, control); } if (CurrentAction != NoAction || ExclusiveAction != NoAction) { CurrentAction.ApplyScrolling(e.Location, e.Delta); ExclusiveAction.ApplyScrolling(e.Location, e.Delta); var |= REDRAW | NO_CAMERA_ACTION; var &= ~REPICK; } return(var); }
public override uint MouseWheel(MouseEventArgs e, GL_ControlBase control) { uint var = 0; foreach (IEditableObject obj in GetObjects()) { var |= obj.MouseWheel(e, control); } foreach (AbstractGlDrawable obj in StaticObjects) { var |= obj.MouseWheel(e, control); } if ((SelectionTransformAction != NoAction || CurrentAction != null)) { if (WinInput.Keyboard.IsKeyDown(WinInput.Key.LeftCtrl)) { SelectionTransformAction.UpdateMousePos(e.Location); CurrentAction?.UpdateMousePos(e.Location); var |= REDRAW; } else { SelectionTransformAction.ApplyScrolling(e.Location, e.Delta); CurrentAction?.ApplyScrolling(e.Location, e.Delta); var |= REDRAW | NO_CAMERA_ACTION; var &= ~REPICK; } } return(var); }