Adapt to new input handling changes

This commit is contained in:
ekrctb
2018-06-11 23:00:26 +09:00
committed by Dean Herbert
parent 155db6969a
commit d6084c0b30
13 changed files with 57 additions and 29 deletions

View File

@ -32,16 +32,14 @@ namespace osu.Game.Input.Handlers
public override int Priority => 0;
public class ReplayState<T> : InputState
public class ReplayState<T> : IInput
where T : struct
{
public List<T> PressedActions;
public override InputState Clone()
public void Apply(InputState state, IInputStateChangeHandler handler)
{
var clone = (ReplayState<T>)base.Clone();
clone.PressedActions = new List<T>(PressedActions);
return clone;
handler.HandleCustomInput(state, this);
}
}
}