From d12fd9de86df784e3dd723689c3d27aa1c208e6e Mon Sep 17 00:00:00 2001 From: Taryn Hill Date: Sat, 30 Jan 2016 12:56:57 -0600 Subject: [PATCH] Add xmldoc to Widget.HandleMouseInput --- OpenRA.Game/Widgets/Widget.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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)