using StardewModdingAPI.Utilities; namespace StardewModdingAPI { /// Provides an API for checking and changing input state. public interface IInputHelper : IModLinked { /// Get the current cursor position. ICursorPosition GetCursorPosition(); /// Get whether a button is currently pressed. /// The button. bool IsDown(SButton button); /// Get whether a button is currently suppressed, so the game won't see it. /// The button. bool IsSuppressed(SButton button); /// Prevent the game from handling a button press. This doesn't prevent other mods from receiving the event. /// The button to suppress. void Suppress(SButton button); /// Suppress the keybinds which are currently down. /// The keybind list whose active keybinds to suppress. void SuppressActiveKeybinds(KeybindList keybindList); /// Get the state of a button. /// The button to check. SButtonState GetState(SButton button); } }