UI 자동화를 위해 바인딩 기능 구현

- 유니티 에셋 인증 오류로 meta 재생성
This commit is contained in:
2026-01-25 01:31:34 +09:00
parent 2ceb28f55d
commit ce83f21c93
1861 changed files with 377882 additions and 211 deletions

View File

@@ -0,0 +1,40 @@
using System.Runtime.InteropServices;
using UnityEngine.InputSystem.Utilities;
////REVIEW: should this have optional data that identifies *what* has changed?
namespace UnityEngine.InputSystem.LowLevel
{
/// <summary>
/// Indicates that the configuration of a device has changed.
/// </summary>
/// <seealso cref="InputSystem.QueueConfigChangeEvent"/>
/// <seealso cref="InputDevice.OnConfigurationChanged"/>
[StructLayout(LayoutKind.Explicit, Size = InputEvent.kBaseEventSize)]
public struct DeviceConfigurationEvent : IInputEventTypeInfo
{
public const int Type = 0x44434647;
[FieldOffset(0)]
public InputEvent baseEvent;
////REVIEW: have some kind of payload that allows indicating what changed in the config?
public FourCC typeStatic => Type;
public unsafe InputEventPtr ToEventPtr()
{
fixed(DeviceConfigurationEvent * ptr = &this)
{
return new InputEventPtr((InputEvent*)ptr);
}
}
public static DeviceConfigurationEvent Create(int deviceId, double time)
{
var inputEvent = new DeviceConfigurationEvent();
inputEvent.baseEvent = new InputEvent(Type, InputEvent.kBaseEventSize, deviceId, time);
return inputEvent;
}
}
}