Firstborn/Library/PackageCache/com.unity.inputsystem@1.5.1/InputSystem/Devices/Commands/QueryCanRunInBackground.cs
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

35 lines
1.1 KiB
C#

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
};
}
}
}