UI 자동화를 위해 바인딩 기능 구현
- 유니티 에셋 인증 오류로 meta 재생성
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine.InputSystem.Utilities;
|
||||
|
||||
namespace UnityEngine.InputSystem.LowLevel
|
||||
{
|
||||
/// <summary>
|
||||
/// Queries to see if this device is able to continue to send updates and state changes when the application is not if focus.
|
||||
/// </summary>
|
||||
/// <seealso cref="InputDevice.canRunInBackground"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = InputDeviceCommand.kBaseCommandSize + sizeof(bool))]
|
||||
public struct QueryCanRunInBackground : IInputDeviceCommandInfo
|
||||
{
|
||||
public static FourCC Type => new FourCC('Q', 'R', 'I', 'B');
|
||||
|
||||
internal const int kSize = InputDeviceCommand.kBaseCommandSize + sizeof(bool);
|
||||
|
||||
[FieldOffset(0)]
|
||||
public InputDeviceCommand baseCommand;
|
||||
|
||||
[FieldOffset(InputDeviceCommand.kBaseCommandSize)]
|
||||
public bool canRunInBackground;
|
||||
|
||||
public FourCC typeStatic => Type;
|
||||
|
||||
public static QueryCanRunInBackground Create()
|
||||
{
|
||||
return new QueryCanRunInBackground
|
||||
{
|
||||
baseCommand = new InputDeviceCommand(Type, kSize),
|
||||
canRunInBackground = false
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user