using System;
namespace TrueCraft.Client.Input
{
///
/// Provides the event data for mouse button events.
///
public class MouseButtonEventArgs : MouseEventArgs
{
///
/// Gets the mouse button for the event.
///
public MouseButton Button { get; private set; }
///
/// Gets whether the button was pressed or released.
///
public bool IsPressed { get; private set; }
///
/// Creates new mouse button event data.
///
/// The X coordinate for the event.
/// The Y coordinate for the event.
/// The mouse button for the event.
/// Whether the button was pressed or released.
public MouseButtonEventArgs(int x, int y, MouseButton button, bool isPressed)
: base(x, y)
{
Button = button;
IsPressed = isPressed;
}
}
}