/// <summary> /// Creates new MouseClickEvent object, used for MouseClick events in the ScreenComponent /// class. /// </summary> /// <param name="component">The component that created the event</param> /// <param name="input"> The inputstate at the time of the event</param> /// <param name="button"> The button that was used to make the click</param> public MouseClickEvent(ScreenComponent component, InputState input, MouseButton button) : base(component, input) { this.button = button; }
public bool RemoveComponent(ScreenComponent component) { return components.Remove(component); }
/// <summary> /// Creates a new MouseEvent instance used for ScreenComponent events /// </summary> /// <param name="component">The component that throws the event</param> /// <param name="input"> The inputstate at the time of throwing the event</param> public MouseEvent(ScreenComponent component, InputState input) { this.component = component; this.input = input; }
public void AddComponent(ScreenComponent component) { components.Add(component); }