// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Testing.Input; namespace osu.Game.Tests.Visual { public abstract class ManualInputManagerTestCase : OsuTestCase { protected override Container Content => InputManager; protected readonly ManualInputManager InputManager; protected ManualInputManagerTestCase() { base.Content.Add(InputManager = new ManualInputManager()); ReturnUserInput(); } /// /// Returns input back to the user. /// protected void ReturnUserInput() { AddStep("Return user input", () => InputManager.UseParentState = true); } } }