mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 15:22:55 +08:00
Update RulesetInputManager to use new method
This commit is contained in:
parent
6f6376d53c
commit
49aa839872
@ -18,9 +18,6 @@ using osu.Game.Input.Handlers;
|
|||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
using static osu.Game.Input.Handlers.ReplayInputHandler;
|
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
|
namespace osu.Game.Rulesets.UI
|
||||||
{
|
{
|
||||||
@ -42,11 +39,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override InputState CreateInitialState()
|
protected override InputState CreateInitialState() => new RulesetInputManagerInputState<T>(base.CreateInitialState());
|
||||||
{
|
|
||||||
var state = base.CreateInitialState();
|
|
||||||
return new RulesetInputManagerInputState<T>(state.Mouse, state.Keyboard, state.Joystick);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected readonly KeyBindingContainer<T> KeyBindingContainer;
|
protected readonly KeyBindingContainer<T> KeyBindingContainer;
|
||||||
|
|
||||||
@ -203,8 +196,8 @@ namespace osu.Game.Rulesets.UI
|
|||||||
{
|
{
|
||||||
public ReplayState<T> LastReplayState;
|
public ReplayState<T> LastReplayState;
|
||||||
|
|
||||||
public RulesetInputManagerInputState(MouseState mouse = null, KeyboardState keyboard = null, JoystickState joystick = null)
|
public RulesetInputManagerInputState(InputState state = null)
|
||||||
: base(mouse, keyboard, joystick)
|
: base(state)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user