// ----------------------------------------------------------------------- // // Copyright 2013 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Input.Raw { using System; public enum RawMouseEventType { LeaveWindow, LeftButtonDown, LeftButtonUp, Move, Wheel, } public class RawMouseEventArgs : RawInputEventArgs { public RawMouseEventArgs( IInputDevice device, uint timestamp, IInputElement root, RawMouseEventType type, Point position) : base(device, timestamp) { Contract.Requires(device != null); Contract.Requires(root != null); this.Root = root; this.Position = position; this.Type = type; } public IInputElement Root { get; private set; } public Point Position { get; private set; } public RawMouseEventType Type { get; private set; } } }