Rasagar/Library/PackageCache/com.unity.ugui/Runtime/UGUI/EventSystem/EventData/AxisEventData.cs

26 lines
684 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
namespace UnityEngine.EventSystems
{
/// <summary>
/// Event Data associated with Axis Events (Controller / Keyboard).
/// </summary>
public class AxisEventData : BaseEventData
{
/// <summary>
/// Raw input vector associated with this event.
/// </summary>
public Vector2 moveVector { get; set; }
/// <summary>
/// MoveDirection for this event.
/// </summary>
public MoveDirection moveDir { get; set; }
public AxisEventData(EventSystem eventSystem)
: base(eventSystem)
{
moveVector = Vector2.zero;
moveDir = MoveDirection.None;
}
}
}