2019-11-24 15:49:53 -05:00
|
|
|
|
|
2018-12-04 07:45:09 -06:00
|
|
|
|
namespace RecrownedAthenaeum.Input
|
2018-11-29 20:41:06 -06:00
|
|
|
|
{
|
2019-01-14 00:34:35 -06:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Input listener for <see cref="InputUtilities"/>.
|
|
|
|
|
/// </summary>
|
2018-11-29 20:41:06 -06:00
|
|
|
|
public interface IInputListener
|
|
|
|
|
{
|
2019-01-14 00:34:35 -06: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-29 20:41:06 -06:00
|
|
|
|
bool KeyboardStateChanged(KeyboardState state);
|
|
|
|
|
|
2019-01-14 00:34:35 -06: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-29 20:41:06 -06:00
|
|
|
|
bool MouseStateChanged(MouseState state);
|
|
|
|
|
}
|
|
|
|
|
}
|