namespace MonoGame.Extended.NuclexGui.Controls { /// Control used to represent the desktop public class GuiDesktopControl : GuiControl { /// Initializes a new control public GuiDesktopControl() { } /// True if the mouse is currently hovering over a GUI element public bool IsMouseOverGui { get { if (MouseOverControl == null) return false; return !ReferenceEquals(MouseOverControl, this); } } /// Whether the GUI holds ownership of the input devices public bool IsInputCaptured { get { if (ActivatedControl == null) return false; return !ReferenceEquals(ActivatedControl, this); } } } }