diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-02 16:15:49 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-02 16:15:49 -0400 |
commit | c0ba24456ba741ad5b072c033f9b0537ee74ad04 (patch) | |
tree | 0c5a118762566d66308dc18f206d16283667e961 /src/SMAPI/Framework | |
parent | d41fe6ff88b569f991f219c5f348d3688fba956f (diff) | |
download | SMAPI-c0ba24456ba741ad5b072c033f9b0537ee74ad04.tar.gz SMAPI-c0ba24456ba741ad5b072c033f9b0537ee74ad04.tar.bz2 SMAPI-c0ba24456ba741ad5b072c033f9b0537ee74ad04.zip |
remove suppression from new events, add convenience methods (#310)
Mods should use the new input API to suppress input instead.
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r-- | src/SMAPI/Framework/SGame.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs index 560b54a4..ae80f680 100644 --- a/src/SMAPI/Framework/SGame.cs +++ b/src/SMAPI/Framework/SGame.cs @@ -480,7 +480,7 @@ namespace StardewModdingAPI.Framework if (status == InputStatus.Pressed) { - this.Events.Input_ButtonPressed.Raise(new InputButtonPressedArgsInput(button, cursor, inputState.SuppressButtons)); + this.Events.Input_ButtonPressed.Raise(new InputButtonPressedArgsInput(button, cursor, inputState)); this.Events.Legacy_Input_ButtonPressed.Raise(new EventArgsInput(button, cursor, inputState.SuppressButtons)); // legacy events @@ -499,7 +499,7 @@ namespace StardewModdingAPI.Framework } else if (status == InputStatus.Released) { - this.Events.Input_ButtonReleased.Raise(new InputButtonReleasedArgsInput(button, cursor, inputState.SuppressButtons)); + this.Events.Input_ButtonReleased.Raise(new InputButtonReleasedArgsInput(button, cursor, inputState)); this.Events.Legacy_Input_ButtonReleased.Raise(new EventArgsInput(button, cursor, inputState.SuppressButtons)); // legacy events |