update for 'force off' gamepad option added in Stardew Valley 1.4.0.1
This commit is contained in:
parent
9465628eff
commit
9c9a0a41b0
|
@ -3,6 +3,9 @@
|
||||||
# Release notes
|
# Release notes
|
||||||
## Upcoming release
|
## Upcoming release
|
||||||
|
|
||||||
|
* For players:
|
||||||
|
* Updated for the 'Force Off' gamepad mode added in Stardew Valley 1.4.0.1.
|
||||||
|
|
||||||
* For the web UI:
|
* 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.
|
* 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.
|
* Updated the JSON validator for Content Patcher 1.10.0.
|
||||||
|
|
|
@ -129,6 +129,9 @@ namespace StardewModdingAPI.Framework.Input
|
||||||
[Obsolete("This method should only be called by the game itself.")]
|
[Obsolete("This method should only be called by the game itself.")]
|
||||||
public override GamePadState GetGamePadState()
|
public override GamePadState GetGamePadState()
|
||||||
{
|
{
|
||||||
|
if (Game1.options.gamepadMode == Options.GamepadModes.ForceOff)
|
||||||
|
return base.GetGamePadState();
|
||||||
|
|
||||||
return this.ShouldSuppressNow()
|
return this.ShouldSuppressNow()
|
||||||
? this.SuppressedController
|
? this.SuppressedController
|
||||||
: this.RealController;
|
: this.RealController;
|
||||||
|
|
Loading…
Reference in New Issue