diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-12-05 22:10:57 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-12-05 22:10:57 -0500 |
commit | 9c9a0a41b041a1799904e78596fdf1d77451e1c4 (patch) | |
tree | fb788366da88cfe16495633bfebe62cc0c244b55 /src | |
parent | 9465628effad6bdb1994599031a8f60c3af2452e (diff) | |
download | SMAPI-9c9a0a41b041a1799904e78596fdf1d77451e1c4.tar.gz SMAPI-9c9a0a41b041a1799904e78596fdf1d77451e1c4.tar.bz2 SMAPI-9c9a0a41b041a1799904e78596fdf1d77451e1c4.zip |
update for 'force off' gamepad option added in Stardew Valley 1.4.0.1
Diffstat (limited to 'src')
-rw-r--r-- | src/SMAPI/Framework/Input/SInputState.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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; |