update for 'force off' gamepad option added in Stardew Valley 1.4.0.1

This commit is contained in:
Jesse Plamondon-Willard 2019-12-05 22:10:57 -05:00
parent 9465628eff
commit 9c9a0a41b0
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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;