2022-02-23 05:14:32 +00:00
|
|
|
|
namespace MoonWorks.Input
|
2021-01-22 22:41:34 +00:00
|
|
|
|
{
|
2023-09-14 18:23:04 +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>
|
2022-11-27 20:41:09 +00:00
|
|
|
|
/// 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>
|
2022-11-27 20:41:09 +00:00
|
|
|
|
/// Indicates that the button was pressed this frame.
|
2022-02-23 05:14:32 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
Pressed,
|
|
|
|
|
/// <summary>
|
2022-11-27 20:41:09 +00:00
|
|
|
|
/// 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
|
|
|
|
}
|