Update RulesetInputManager to use new method

This commit is contained in:
Dean Herbert 2020-07-01 18:54:11 +09:00
parent 6f6376d53c
commit 49aa839872
1 changed files with 3 additions and 10 deletions

View File

@ -18,9 +18,6 @@
using osu.Game.Screens.Play;
using osuTK.Input;
using static osu.Game.Input.Handlers.ReplayInputHandler;
using JoystickState = osu.Framework.Input.States.JoystickState;
using KeyboardState = osu.Framework.Input.States.KeyboardState;
using MouseState = osu.Framework.Input.States.MouseState;
namespace osu.Game.Rulesets.UI
{
@ -42,11 +39,7 @@ public ReplayRecorder Recorder
}
}
protected override InputState CreateInitialState()
{
var state = base.CreateInitialState();
return new RulesetInputManagerInputState<T>(state.Mouse, state.Keyboard, state.Joystick);
}
protected override InputState CreateInitialState() => new RulesetInputManagerInputState<T>(base.CreateInitialState());
protected readonly KeyBindingContainer<T> KeyBindingContainer;
@ -203,8 +196,8 @@ public class RulesetInputManagerInputState<T> : InputState
{
public ReplayState<T> LastReplayState;
public RulesetInputManagerInputState(MouseState mouse = null, KeyboardState keyboard = null, JoystickState joystick = null)
: base(mouse, keyboard, joystick)
public RulesetInputManagerInputState(InputState state = null)
: base(state)
{
}
}