Remove more cruft from Game.controller
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user