UI 자동화를 위해 바인딩 기능 구현
- 유니티 에셋 인증 오류로 meta 재생성
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine.InputSystem.Utilities;
|
||||
|
||||
namespace UnityEngine.InputSystem.LowLevel
|
||||
{
|
||||
/// <summary>
|
||||
/// A command to tell the runtime to reset the device to it's default state.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This triggers an event being sent from the device that represents an empty, or untouched device.
|
||||
/// </remarks>
|
||||
/// <seealso cref="RequestSyncCommand"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = InputDeviceCommand.kBaseCommandSize)]
|
||||
public struct RequestResetCommand : IInputDeviceCommandInfo
|
||||
{
|
||||
public static FourCC Type => new FourCC('R', 'S', 'E', 'T');
|
||||
|
||||
internal const int kSize = InputDeviceCommand.kBaseCommandSize;
|
||||
|
||||
[FieldOffset(0)]
|
||||
public InputDeviceCommand baseCommand;
|
||||
|
||||
public FourCC typeStatic => Type;
|
||||
|
||||
public static RequestResetCommand Create()
|
||||
{
|
||||
return new RequestResetCommand
|
||||
{
|
||||
baseCommand = new InputDeviceCommand(Type, kSize)
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user