blob: e9768c243d8a846fa0a0134f7e8cb7c2a9050881 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
namespace StardewModdingAPI
{
/// <summary>Provides an API for checking and changing input state.</summary>
public interface IInputHelper : IModLinked
{
/// <summary>Get the current cursor position.</summary>
ICursorPosition GetCursorPosition();
/// <summary>Get whether a button is currently pressed.</summary>
/// <param name="button">The button.</param>
bool IsDown(SButton button);
/// <summary>Get whether a button is currently suppressed, so the game won't see it.</summary>
/// <param name="button">The button.</param>
bool IsSuppressed(SButton button);
/// <summary>Prevent the game from handling a button press. This doesn't prevent other mods from receiving the event.</summary>
/// <param name="button">The button to suppress.</param>
void Suppress(SButton button);
/// <summary>Get the state of a button.</summary>
/// <param name="button">The button to check.</param>
SButtonState GetState(SButton button);
}
}
|