diff options
author | ClxS <slxxls92@gmail.com> | 2016-03-12 22:36:30 +0000 |
---|---|---|
committer | ClxS <slxxls92@gmail.com> | 2016-03-12 22:36:30 +0000 |
commit | 78609647e9e5ed6310942eaf104f495353e328e3 (patch) | |
tree | 278bf90be1aff05e623c17e3cebc37709b20d898 /StardewModdingAPI/Events/EventArgs.cs | |
parent | bc84a66a6fd2dd3b334eaf8405ef8b4fc6b4acc0 (diff) | |
parent | d367b0a7bceeac210ee7336477f98559b6122d13 (diff) | |
download | SMAPI-78609647e9e5ed6310942eaf104f495353e328e3.tar.gz SMAPI-78609647e9e5ed6310942eaf104f495353e328e3.tar.bz2 SMAPI-78609647e9e5ed6310942eaf104f495353e328e3.zip |
Updated release branch to 0.37.3
Diffstat (limited to 'StardewModdingAPI/Events/EventArgs.cs')
-rw-r--r-- | StardewModdingAPI/Events/EventArgs.cs | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/StardewModdingAPI/Events/EventArgs.cs b/StardewModdingAPI/Events/EventArgs.cs index 66d057a7..ee30b406 100644 --- a/StardewModdingAPI/Events/EventArgs.cs +++ b/StardewModdingAPI/Events/EventArgs.cs @@ -30,7 +30,55 @@ namespace StardewModdingAPI.Events }
public Keys KeyPressed { get; private set; }
}
-
+
+ public class EventArgsControllerButtonPressed : EventArgs
+ {
+ public EventArgsControllerButtonPressed(PlayerIndex playerIndex, Buttons buttonPressed)
+ {
+ PlayerIndex = playerIndex;
+ ButtonPressed = buttonPressed;
+ }
+ public PlayerIndex PlayerIndex { get; private set; }
+ public Buttons ButtonPressed { get; private set; }
+ }
+
+ public class EventArgsControllerButtonReleased : EventArgs
+ {
+ public EventArgsControllerButtonReleased(PlayerIndex playerIndex, Buttons buttonReleased)
+ {
+ PlayerIndex = playerIndex;
+ ButtonReleased = buttonReleased;
+ }
+ public PlayerIndex PlayerIndex { get; private set; }
+ public Buttons ButtonReleased { get; private set; }
+ }
+
+ public class EventArgsControllerTriggerPressed : EventArgs
+ {
+ public EventArgsControllerTriggerPressed(PlayerIndex playerIndex, Buttons buttonPressed, float value)
+ {
+ PlayerIndex = playerIndex;
+ ButtonPressed = buttonPressed;
+ Value = value;
+ }
+ public PlayerIndex PlayerIndex { get; private set; }
+ public Buttons ButtonPressed { get; private set; }
+ public float Value { get; private set; }
+ }
+
+ public class EventArgsControllerTriggerReleased : EventArgs
+ {
+ public EventArgsControllerTriggerReleased(PlayerIndex playerIndex, Buttons buttonReleased, float value)
+ {
+ PlayerIndex = playerIndex;
+ ButtonReleased = buttonReleased;
+ Value = value;
+ }
+ public PlayerIndex PlayerIndex { get; private set; }
+ public Buttons ButtonReleased { get; private set; }
+ public float Value { get; private set; }
+ }
+
public class EventArgsMouseStateChanged : EventArgs
{
public EventArgsMouseStateChanged(MouseState priorState, MouseState newState)
|