1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 05:19:56 +08:00

Make RulesetContainer load KeyBindingInputManager in load()

This commit is contained in:
smoogipooo
2017-08-23 12:47:47 +09:00
Unverified
parent a6266850d6
commit be96fb32b3
+6 -1
View File
@@ -48,7 +48,7 @@ namespace osu.Game.Rulesets.UI
/// <summary>
/// The key conversion input manager for this RulesetContainer.
/// </summary>
public readonly PassThroughInputManager KeyBindingInputManager;
public PassThroughInputManager KeyBindingInputManager;
/// <summary>
/// Whether we are currently providing the local user a gameplay cursor.
@@ -76,6 +76,11 @@ namespace osu.Game.Rulesets.UI
internal RulesetContainer(Ruleset ruleset)
{
Ruleset = ruleset;
}
[BackgroundDependencyLoader]
private void load()
{
KeyBindingInputManager = CreateInputManager();
KeyBindingInputManager.RelativeSizeAxes = Axes.Both;
}