recrownedgtk/RecrownedAthenaeum/Input/IInputListener.cs

25 lines
798 B
C#
Raw Normal View History

using Microsoft.Xna.Framework.Input;
namespace RecrownedAthenaeum.Input
{
2019-01-14 06:34:35 +00:00
/// <summary>
/// Input listener for <see cref="InputUtilities"/>.
/// </summary>
public interface IInputListener
{
2019-01-14 06:34:35 +00:00
/// <summary>
/// Called when the state of the keyboard has changed.
/// </summary>
/// <param name="state">The new state.</param>
/// <returns>True to continue calling other listeners.</returns>
bool KeyboardStateChanged(KeyboardState state);
2019-01-14 06:34:35 +00:00
/// <summary>
/// Called when the state of the mouse has changed.
/// </summary>
/// <param name="state">The new state.</param>
/// <returns>True to continue calling other listeners.</returns>
bool MouseStateChanged(MouseState state);
}
}