wangguan
2020-11-18 db2acfc3bc959747081fd9732759fbcb646911a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using UnityEngine;
 
namespace Core.Input
{
    /// <summary>
    /// Class to track information about a passive pointer input
    /// </summary>
    public abstract class PointerInfo
    {
        /// <summary>
        /// Current pointer position
        /// </summary>
        public Vector2 currentPosition;
 
        /// <summary>
        /// Previous frame's pointer position
        /// </summary>
        public Vector2 previousPosition;
 
        /// <summary>
        /// Movement delta for this frame
        /// </summary>
        public Vector2 delta;
 
        /// <summary>
        /// Tracks if this pointer began over UI
        /// </summary>
        public bool startedOverUI;
    }
}