Expose taiko input manager in same manner as osu!

This commit is contained in:
Bartłomiej Dach 2023-03-08 22:52:06 +01:00
parent b2d453fd2e
commit 430b09acb2
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ public partial class TaikoModSingleTap : Mod, IApplicableToDrawableRuleset<Taiko
public void ApplyToDrawableRuleset(DrawableRuleset<TaikoHitObject> drawableRuleset)
{
ruleset = (DrawableTaikoRuleset)drawableRuleset;
ruleset.InputManager.Add(new InputInterceptor(this));
ruleset.KeyBindingInputManager.Add(new InputInterceptor(this));
playfield = (TaikoPlayfield)ruleset.Playfield;
var periods = new List<Period>();

View File

@ -33,7 +33,7 @@ public partial class DrawableTaikoRuleset : DrawableScrollingRuleset<TaikoHitObj
public readonly BindableBool LockPlayfieldMaxAspect = new BindableBool(true);
public TaikoInputManager InputManager { get; private set; }
public new TaikoInputManager KeyBindingInputManager => (TaikoInputManager)base.KeyBindingInputManager;
protected override ScrollVisualisationMethod VisualisationMethod => ScrollVisualisationMethod.Overlapping;
@ -95,7 +95,7 @@ public MultiplierControlPoint ControlPointAt(double time)
LockPlayfieldMaxAspect = { BindTarget = LockPlayfieldMaxAspect }
};
protected override PassThroughInputManager CreateInputManager() => InputManager = new TaikoInputManager(Ruleset.RulesetInfo);
protected override PassThroughInputManager CreateInputManager() => new TaikoInputManager(Ruleset.RulesetInfo);
protected override Playfield CreatePlayfield() => new TaikoPlayfield();