mirror of
https://github.com/Pathoschild/SMAPI.git
synced 2026-10-12 02:08:51 +00:00
Expose OverrideButton.
This commit is contained in:
@@ -85,4 +85,10 @@ internal class InputHelper : BaseHelper, IInputHelper
|
||||
{
|
||||
return this.CurrentInputState().GetState(button);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void OverrideButton(SButton button, bool setDown)
|
||||
{
|
||||
this.CurrentInputState().OverrideButton(button, setDown);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,4 +30,9 @@ public interface IInputHelper : IModLinked
|
||||
/// <summary>Get the state of a button.</summary>
|
||||
/// <param name="button">The button to check.</param>
|
||||
SButtonState GetState(SButton button);
|
||||
|
||||
/// <summary>Override the state of a button.</summary>
|
||||
/// <param name="button">The button to override.</param>
|
||||
/// <param name="setDown">A new button state.</param>
|
||||
void OverrideButton(SButton button, bool setDown);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user