summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-05 22:10:57 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-05 22:10:57 -0500
commit9c9a0a41b041a1799904e78596fdf1d77451e1c4 (patch)
treefb788366da88cfe16495633bfebe62cc0c244b55 /src
parent9465628effad6bdb1994599031a8f60c3af2452e (diff)
downloadSMAPI-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.cs3
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;