Move Game.Controller.HandleInput into a widget; works but is hacky

This commit is contained in:
Paul Chote
2010-07-25 17:45:53 +12:00
parent f61421edd0
commit 2248320af7
10 changed files with 110 additions and 86 deletions

View File

@@ -104,10 +104,10 @@ namespace OpenRA.Widgets
Location = (loc * Game.CellSize - Game.viewport.Location).ToInt2()
};
Game.controller.HandleInput(Game.world, fakemi);
Widget.HandleInput(Game.world, fakemi);
fakemi.Event = MouseInputEvent.Up;
Game.controller.HandleInput(Game.world, fakemi);
Widget.HandleInput(Game.world, fakemi);
}
return true;