|
|
|
@ -18,14 +18,27 @@ namespace Perspex.Input.Raw |
|
|
|
Wheel, |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// A raw mouse event.
|
|
|
|
/// </summary>
|
|
|
|
public class RawMouseEventArgs : RawInputEventArgs |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="RawMouseEventArgs"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="device">The associated device.</param>
|
|
|
|
/// <param name="timestamp">The event timestamp.</param>
|
|
|
|
/// <param name="root">The root from which the event originates.</param>
|
|
|
|
/// <param name="type">The type of the event.</param>
|
|
|
|
/// <param name="position">The mouse position, in client DIPs.</param>
|
|
|
|
/// <param name="inputModifiers">The input modifiers.</param>
|
|
|
|
public RawMouseEventArgs( |
|
|
|
IInputDevice device, |
|
|
|
uint timestamp, |
|
|
|
IInputRoot root, |
|
|
|
RawMouseEventType type, |
|
|
|
Point position, InputModifiers inputModifiers) |
|
|
|
Point position, |
|
|
|
InputModifiers inputModifiers) |
|
|
|
: base(device, timestamp) |
|
|
|
{ |
|
|
|
Contract.Requires<ArgumentNullException>(device != null); |
|
|
|
@ -37,12 +50,24 @@ namespace Perspex.Input.Raw |
|
|
|
InputModifiers = inputModifiers; |
|
|
|
} |
|
|
|
|
|
|
|
public IInputRoot Root { get; private set; } |
|
|
|
/// <summary>
|
|
|
|
/// Gets the root from which the event originates.
|
|
|
|
/// </summary>
|
|
|
|
public IInputRoot Root { get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the mouse position, in client DIPs.
|
|
|
|
/// </summary>
|
|
|
|
public Point Position { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the type of the event.
|
|
|
|
/// </summary>
|
|
|
|
public RawMouseEventType Type { get; private set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the input modifiers.
|
|
|
|
/// </summary>
|
|
|
|
public InputModifiers InputModifiers { get; private set; } |
|
|
|
} |
|
|
|
} |
|
|
|
|