Move MapPreviewWidget.HandleInputInner to the lobby delegate.

This commit is contained in:
Paul Chote
2011-01-05 22:16:01 +13:00
parent 7b5b84b1b7
commit 3e1db3e8ae
3 changed files with 23 additions and 35 deletions

View File

@@ -194,10 +194,6 @@ namespace OpenRA.Widgets
return EventBounds.Contains(pos.ToPoint()) ? GetCursor(pos) : null;
}
// Hack: Don't eat mouse input that others want
// TODO: Solve this properly
public virtual bool HandleInputInner(MouseInput mi) { return !ClickThrough && mi.Button == MouseButton.Left && mi.Event != MouseInputEvent.Move; }
public static bool HandleInput(MouseInput mi)
{
bool handled = false;
@@ -238,7 +234,10 @@ namespace OpenRA.Widgets
return true;
}
// Hack: Don't eat mouse input that others want
// TODO: Solve this properly
public virtual bool HandleInputInner(MouseInput mi) { return !ClickThrough && mi.Button == MouseButton.Left && mi.Event != MouseInputEvent.Move; }
public virtual bool HandleKeyPressInner(KeyInput e) { return false; }
public virtual bool HandleKeyPressOuter(KeyInput e)