TrueCraft/TrueCraft.Client/Input/MouseEventArgs.cs

32 lines
799 B
C#
Raw Normal View History

2015-06-13 19:17:06 -04:00
using System;
namespace TrueCraft.Client.Input
{
/// <summary>
2015-06-14 11:33:18 -04:00
/// Provides the event data for mouse events.
2015-06-13 19:17:06 -04:00
/// </summary>
public class MouseEventArgs : EventArgs
{
/// <summary>
2015-06-14 11:33:18 -04:00
/// Gets the X coordinate for the event.
2015-06-13 19:17:06 -04:00
/// </summary>
public int X { get; private set; }
/// <summary>
2015-06-14 11:33:18 -04:00
/// Gets the Y coordinate for the event.
2015-06-13 19:17:06 -04:00
/// </summary>
public int Y { get; private set; }
/// <summary>
2015-06-14 11:33:18 -04:00
/// Creates new mouse event data.
2015-06-13 19:17:06 -04:00
/// </summary>
2015-06-14 11:33:18 -04:00
/// <param name="x">The X coordinate for the event.</param>
/// <param name="y">The Y coordinate for the event.</param>
2015-06-13 19:17:06 -04:00
public MouseEventArgs(int x, int y)
{
X = x;
Y = y;
}
}
}