diff --git a/OpenRA.Game/Widgets/Widget.cs b/OpenRA.Game/Widgets/Widget.cs
index 70799ef4e7..64b0498e74 100644
--- a/OpenRA.Game/Widgets/Widget.cs
+++ b/OpenRA.Game/Widgets/Widget.cs
@@ -108,6 +108,9 @@ namespace OpenRA.Widgets
return handled;
}
+ /// Possibly handle keyboard input (if this widget has keyboard focus)
+ /// true, if keyboard input was handled, false if the input should bubble to the parent widget
+ /// Key input data
public static bool HandleKeyPress(KeyInput e)
{
if (KeyboardFocusWidget != null)
@@ -345,6 +348,10 @@ namespace OpenRA.Widgets
public virtual void MouseEntered() { }
public virtual void MouseExited() { }
+
+ /// Possibly handles mouse input (click, drag, scroll, etc).
+ /// true, if mouse input was handled, false if the input should bubble to the parent widget
+ /// Mouse input data
public virtual bool HandleMouseInput(MouseInput mi) { return false; }
public bool HandleMouseInputOuter(MouseInput mi)