summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events/EventArgs.cs
diff options
context:
space:
mode:
authorClxS <slxxls92@gmail.com>2016-03-07 13:49:45 +0000
committerClxS <slxxls92@gmail.com>2016-03-07 13:49:45 +0000
commit71bcfc11dea8c189152a9aa2534c87e1b1486018 (patch)
treefbfe5327353e0102dc2fc3b7bb6020e1010aee16 /StardewModdingAPI/Events/EventArgs.cs
parent49090c98fcdc11ca536de42875f50b763e83ce63 (diff)
downloadSMAPI-71bcfc11dea8c189152a9aa2534c87e1b1486018.tar.gz
SMAPI-71bcfc11dea8c189152a9aa2534c87e1b1486018.tar.bz2
SMAPI-71bcfc11dea8c189152a9aa2534c87e1b1486018.zip
Partially completed events for gamepad input
Diffstat (limited to 'StardewModdingAPI/Events/EventArgs.cs')
-rw-r--r--StardewModdingAPI/Events/EventArgs.cs24
1 files changed, 23 insertions, 1 deletions
diff --git a/StardewModdingAPI/Events/EventArgs.cs b/StardewModdingAPI/Events/EventArgs.cs
index 66d057a7..6c5e1401 100644
--- a/StardewModdingAPI/Events/EventArgs.cs
+++ b/StardewModdingAPI/Events/EventArgs.cs
@@ -30,7 +30,29 @@ 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;
+ public Buttons ButtonPressed { get; private set; }
+ }
+
+ public class EventArgsControllerButtonReleased : EventArgs
+ {
+ public EventArgsControllerButtonReleased(PlayerIndex playerIndex, Buttons buttonReleased)
+ {
+ PlayerIndex = playerIndex;
+ ButtonReleased = buttonReleased;
+ }
+ public PlayerIndex PlayerIndex;
+ public Buttons ButtonReleased { get; private set; }
+ }
+
public class EventArgsMouseStateChanged : EventArgs
{
public EventArgsMouseStateChanged(MouseState priorState, MouseState newState)