// ----------------------------------------------------------------------- // // Copyright 2013 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Input.Raw { using System; using Perspex.Layout; public enum RawMouseEventType { Move, LeftButtonDown, LeftButtonUp, } public class RawMouseEventArgs : RawInputEventArgs { public RawMouseEventArgs( IInputDevice device, ILayoutRoot root, RawMouseEventType type, Point position) : base(device) { Contract.Requires(device != null); Contract.Requires(root != null); this.Root = root; this.Position = position; this.Type = type; } //TODO: This should probably be IInputRoot or something. public ILayoutRoot Root { get; private set; } public Point Position { get; private set; } public RawMouseEventType Type { get; private set; } } }