28 lines
598 B
C#
28 lines
598 B
C#
#if UNITY_INPUT_SYSTEM_ENABLE_UI
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace UnityEngine.InputSystem.UI
|
|
{
|
|
internal struct NavigationModel
|
|
{
|
|
public Vector2 move;
|
|
public int consecutiveMoveCount;
|
|
public MoveDirection lastMoveDirection;
|
|
public float lastMoveTime;
|
|
public AxisEventData eventData;
|
|
public InputDevice device;
|
|
|
|
public void Reset()
|
|
{
|
|
move = Vector2.zero;
|
|
}
|
|
}
|
|
|
|
internal struct SubmitCancelModel
|
|
{
|
|
public BaseEventData eventData;
|
|
public InputDevice device;
|
|
}
|
|
}
|
|
#endif
|