/// <summary> /// Loops over all GUI Elements in the List and handles input /// </summary> /// <param name="input"></param> public void HandleInput(InputHelper input) { foreach (GUIElement element in guiElements) element.HandleInput(input); }
public virtual void HandleInput(InputHelper input) { }
public override void HandleInput(InputHelper input) { isPressed = input.IsMouseButtonPresed(MouseButton.Left) && BoundingBox.Contains((int)input.MousePosition.X, (int)input.MousePosition.Y); }