/*
* @author Valentin Simonov / http://va.lent.in/
*/
using TouchScript.InputSources;
using UnityEngine;
namespace TouchScript.Pointers
{
///
/// A pointer of type .
///
public class MousePointer : Pointer
{
#region Public properties
///
/// Mouse scroll delta this frame.
///
public Vector2 ScrollDelta { get; set; }
#endregion
#region Constructor
///
/// Initializes a new instance of the class.
///
public MousePointer(IInputSource input) : base(input)
{
Type = PointerType.Mouse;
}
#endregion
#region Public methods
///
public override void CopyFrom(Pointer target)
{
base.CopyFrom(target);
var mouseTarget = target as MousePointer;
if (mouseTarget == null) return;
ScrollDelta = mouseTarget.ScrollDelta;
}
#endregion
#region Internal functions
//internal override void INTERNAL_Reset()
//{
// base.INTERNAL_Reset();
//}
#endregion
}
}