2018-11-30 02:41:06 +00:00
|
|
|
|
using Microsoft.Xna.Framework.Input;
|
|
|
|
|
|
2018-12-04 13:45:09 +00:00
|
|
|
|
namespace RecrownedAthenaeum.Input
|
2018-11-30 02:41:06 +00:00
|
|
|
|
{
|
2019-01-14 06:34:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Input listener for <see cref="InputUtilities"/>.
|
|
|
|
|
/// </summary>
|
2018-11-30 02:41:06 +00:00
|
|
|
|
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>
|
2018-11-30 02:41:06 +00:00
|
|
|
|
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>
|
2018-11-30 02:41:06 +00:00
|
|
|
|
bool MouseStateChanged(MouseState state);
|
|
|
|
|
}
|
|
|
|
|
}
|