namespace StardewModdingAPI
{
/// The input status for a button during an update frame.
public enum InputStatus
{
/// The button was neither pressed, held, nor released.
None,
/// The button was pressed in this frame.
Pressed,
/// The button has been held since the last frame.
Held,
/// The button was released in this frame.
Released
}
/// Extension methods for .
internal static class InputStatusExtensions
{
/// Whether the button was pressed or held.
/// The button status.
public static bool IsDown(this InputStatus status)
{
return status == InputStatus.Held || status == InputStatus.Pressed;
}
}
}