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);
}
}