recrownedathenaeum/RecrownedAthenaeum/Input/IInputListener.cs
2021-12-23 21:27:41 -06:00

24 lines
761 B
C#
Executable File

namespace RecrownedAthenaeum.Input
{
/// <summary>
/// Input listener for <see cref="InputUtilities"/>.
/// </summary>
public interface IInputListener
{
/// <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);
/// <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);
}
}