using System; using System.Text; using UnityEngine; using UnityEngine.EventSystems; namespace CurvedUI { /// /// This class stores additional information that CurvedUI uses for its Pointer Events. /// Right now its only used to store the controller used to interact with canvas. /// public class CurvedUIPointerEventData : PointerEventData { public CurvedUIPointerEventData(EventSystem eventSystem) : base(eventSystem) { } public enum ControllerType { NONE = -1, VIVE = 0, } public GameObject Controller; /// /// Basically the position of user's finger on a touchpad. Goes from -1,-1 to 1,1 /// public Vector2 TouchPadAxis = Vector2.zero; } }