using System;
using StardewModdingAPI.Events;
namespace StardewModdingAPI.Framework.Events
{
///
internal class ModInputEvents : ModEventsBase, IInputEvents
{
/*********
** Accessors
*********/
///
public event EventHandler ButtonsChanged
{
add => this.EventManager.ButtonsChanged.Add(value, this.Mod);
remove => this.EventManager.ButtonsChanged.Remove(value);
}
///
public event EventHandler ButtonPressed
{
add => this.EventManager.ButtonPressed.Add(value, this.Mod);
remove => this.EventManager.ButtonPressed.Remove(value);
}
///
public event EventHandler ButtonReleased
{
add => this.EventManager.ButtonReleased.Add(value, this.Mod);
remove => this.EventManager.ButtonReleased.Remove(value);
}
///
public event EventHandler CursorMoved
{
add => this.EventManager.CursorMoved.Add(value, this.Mod);
remove => this.EventManager.CursorMoved.Remove(value);
}
///
public event EventHandler MouseWheelScrolled
{
add => this.EventManager.MouseWheelScrolled.Add(value, this.Mod);
remove => this.EventManager.MouseWheelScrolled.Remove(value);
}
/*********
** Public methods
*********/
/// Construct an instance.
/// The mod which uses this instance.
/// The underlying event manager.
internal ModInputEvents(IModMetadata mod, EventManager eventManager)
: base(mod, eventManager) { }
}
}