// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using osu.Framework.Input; using osu.Game.Rulesets.Replays; using OpenTK; namespace osu.Game.Rulesets.Osu.Replays { public class OsuReplayInputHandler : FramedReplayInputHandler { public OsuReplayInputHandler(Replay replay) : base(replay) { } public override List GetPendingStates() { List actions = new List(); if (CurrentFrame?.MouseLeft ?? false) actions.Add(OsuAction.LeftButton); if (CurrentFrame?.MouseRight ?? false) actions.Add(OsuAction.RightButton); return new List { new ReplayState { Mouse = new ReplayMouseState(ToScreenSpace(Position ?? Vector2.Zero)), PressedActions = actions } }; } } }