summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/release-notes.md3
-rw-r--r--src/SMAPI/Framework/Input/SInputState.cs3
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index dec552d6..c4607ef0 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -3,6 +3,9 @@
# Release notes
## Upcoming release
+* For players:
+ * Updated for the 'Force Off' gamepad mode added in Stardew Valley 1.4.0.1.
+
* For the web UI:
* If a JSON validator upload can't be saved to Pastebin (e.g. due to rate limits), it's now uploaded to Amazon S3 instead. Files uploaded to S3 expire after one month.
* Updated the JSON validator for Content Patcher 1.10.0.
diff --git a/src/SMAPI/Framework/Input/SInputState.cs b/src/SMAPI/Framework/Input/SInputState.cs
index d69e5604..84cea36c 100644
--- a/src/SMAPI/Framework/Input/SInputState.cs
+++ b/src/SMAPI/Framework/Input/SInputState.cs
@@ -129,6 +129,9 @@ namespace StardewModdingAPI.Framework.Input
[Obsolete("This method should only be called by the game itself.")]
public override GamePadState GetGamePadState()
{
+ if (Game1.options.gamepadMode == Options.GamepadModes.ForceOff)
+ return base.GetGamePadState();
+
return this.ShouldSuppressNow()
? this.SuppressedController
: this.RealController;