MoonWorks/src/Input/ButtonStatus.cs

26 lines
585 B
C#
Raw Normal View History

2022-02-23 05:14:32 +00:00
namespace MoonWorks.Input
2021-01-22 22:41:34 +00:00
{
/// <summary>
/// Represents the current status of a binary input.
/// </summary>
2022-03-07 18:54:52 +00:00
public enum ButtonStatus
2022-02-23 05:14:32 +00:00
{
/// <summary>
/// Indicates that the button was not pressed last frame and is still not pressed.
/// </summary>
Idle,
/// <summary>
/// Indicates that the button was released this frame.
2022-02-23 05:14:32 +00:00
/// </summary>
Released,
/// <summary>
/// Indicates that the button was pressed this frame.
2022-02-23 05:14:32 +00:00
/// </summary>
Pressed,
/// <summary>
/// Indicates that the button has been held for multiple frames.
2022-02-23 05:14:32 +00:00
/// </summary>
Held
}
2021-01-22 22:41:34 +00:00
}