study/first_study/Library/PackageCache/com.unity.inputsystem@02433b2481ab/InputSystem/Plugins/UI/ExtendedAxisEventData.cs
jh04010421 739d49f1a0 Unity | 2026.01.20
수업 실습 파일
2026-01-20 11:01:57 +09:00

29 lines
819 B
C#

#if PACKAGE_DOCS_GENERATION || UNITY_INPUT_SYSTEM_ENABLE_UI
using UnityEngine.EventSystems;
namespace UnityEngine.InputSystem.UI
{
// AxisEventData has no ToString. Also added device info. Keeping
// it internal for now.
internal class ExtendedAxisEventData : AxisEventData, INavigationEventData
{
/// <summary>
/// The <see cref="InputDevice"/> that generated the axis input.
/// </summary>
/// <seealso cref="Keyboard"/>
/// <seealso cref="Gamepad"/>
public InputDevice device { get; set; }
public ExtendedAxisEventData(EventSystem eventSystem)
: base(eventSystem)
{
}
public override string ToString()
{
return $"MoveDir: {moveDir}\nMoveVector: {moveVector}";
}
}
}
#endif