Remove more cruft from Game.controller

This commit is contained in:
Paul Chote
2010-07-25 18:41:19 +12:00
parent eac49ca641
commit e677be7908
7 changed files with 13 additions and 15 deletions

View File

@@ -387,7 +387,7 @@ namespace OpenRA.Widgets
Sound.Play(unit.Traits.Contains<BuildingInfo>() ? eva.BuildingSelectAudio : eva.UnitSelectAudio);
Game.IssueOrder(Order.StartProduction(world.LocalPlayer, item,
Game.controller.GetModifiers().HasModifier(Modifiers.Shift) ? 5 : 1));
Game.GetModifierKeys().HasModifier(Modifiers.Shift) ? 5 : 1));
}
static Dictionary<string, string> CategoryNameRemaps = new Dictionary<string, string>

View File

@@ -82,7 +82,7 @@ namespace OpenRA.Widgets
{
Location = pos,
Button = MouseButton.Right,
Modifiers = Game.controller.GetModifiers()
Modifiers = Game.GetModifierKeys()
};
return Game.controller.orderGenerator.GetCursor( world, Game.viewport.ViewToWorld(mi).ToInt2(), mi );

View File

@@ -71,7 +71,7 @@ namespace OpenRA.Widgets
{
Location = loc,
Button = MouseButton.Right,
Modifiers = Game.controller.GetModifiers()
Modifiers = Game.GetModifierKeys()
};
var cursor = Game.controller.orderGenerator.GetCursor( world, loc, mi );