namespace StardewModdingAPI { /// The input state for a button during an update frame. public enum SButtonState { /// 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 . public static class InputStatusExtensions { /// Whether the button was pressed or held. /// The button state. public static bool IsDown(this SButtonState state) { return state == SButtonState.Held || state == SButtonState.Pressed; } } }