This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
TrueCraft/TrueCraft.Client/Input/MouseMoveEventArgs.cs
Drew DeVault 7e2d657393 Change how mouse is handled in client
This makes it playable on Wayland, which I've been using a lot lately.
2015-11-20 17:33:35 -05:00

35 lines
1.1 KiB
C#

using System;
namespace TrueCraft.Client.Input
{
/// <summary>
/// Provides the event data for mouse movement events.
/// </summary>
public class MouseMoveEventArgs : MouseEventArgs
{
/// <summary>
/// Gets the X coordinate delta for the event.
/// </summary>
public int DeltaX { get; private set; }
/// <summary>
/// Gets the Y coordinate delta for the event.
/// </summary>
public int DeltaY { get; private set; }
/// <summary>
/// Creates new mouse movement event data.
/// </summary>
/// <param name="x">The X coordinate for the event.</param>
/// <param name="y">The Y coordinate for the event.</param>
/// <param name="deltaX">The X coordinate delta for the event.</param>
/// <param name="deltaY">The Y coordinate delta for the event.</param>
public MouseMoveEventArgs(int x, int y, int deltaX, int deltaY)
: base(x, y)
{
DeltaX = deltaX;
DeltaY = deltaY;
}
}
}