mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Move InputManager to a higher and more implicit level.
Also makes KeyCounterCollection work with replays.
This commit is contained in:
@ -124,10 +124,15 @@ namespace osu.Game.Screens.Play
|
||||
OnQuit = Exit
|
||||
};
|
||||
|
||||
hitRenderer = ruleset.CreateHitRendererWith(beatmap, new PlayerInputManager
|
||||
hitRenderer = ruleset.CreateHitRendererWith(beatmap);
|
||||
|
||||
if (ReplayInputHandler != null)
|
||||
{
|
||||
ReplayInputHandler = ReplayInputHandler
|
||||
});
|
||||
ReplayInputHandler.ToScreenSpace = hitRenderer.MapPlayfieldToScreenSpace;
|
||||
hitRenderer.InputManager.ReplayInputHandler = ReplayInputHandler;
|
||||
}
|
||||
|
||||
scoreOverlay.BindHitRenderer(hitRenderer);
|
||||
|
||||
//bind HitRenderer to ScoreProcessor and ourselves (for a pass situation)
|
||||
hitRenderer.OnJudgement += scoreProcessor.AddJudgement;
|
||||
@ -228,8 +233,8 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
if (!Push(newPlayer))
|
||||
{
|
||||
// Error(?)
|
||||
}
|
||||
// Error(?)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user