// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; namespace osu.Framework.Input { /// /// A source from which we can retrieve user text input. /// Generally hides a native implementation from the game framework. /// public interface ITextInputSource { bool ImeActive { get; } string GetPendingText(); void Deactivate(); void Activate(); /// /// Ensures that the native implementation that retrieves user text input is activated /// and that the user can start entering text. /// void EnsureActivated(); event Action OnNewImeComposition; event Action OnNewImeResult; } }