Firstborn/Library/PackageCache/com.unity.inputsystem@1.5.1/InputSystem/Devices/Commands/RequestSyncCommand.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

34 lines
1.0 KiB
C#

using System.Runtime.InteropServices;
using UnityEngine.InputSystem.Utilities;
namespace UnityEngine.InputSystem.LowLevel
{
/// <summary>
/// A command to tell the runtime to sync the device to it's last known state.
/// </summary>
/// <remarks>
/// This triggers an event from the underlying device that represents the whole, current state.
/// </remarks>
/// <seealso cref="RequestResetCommand"/>
[StructLayout(LayoutKind.Explicit, Size = InputDeviceCommand.kBaseCommandSize)]
public struct RequestSyncCommand : IInputDeviceCommandInfo
{
public static FourCC Type => new FourCC('S', 'Y', 'N', 'C');
internal const int kSize = InputDeviceCommand.kBaseCommandSize;
[FieldOffset(0)]
public InputDeviceCommand baseCommand;
public FourCC typeStatic => Type;
public static RequestSyncCommand Create()
{
return new RequestSyncCommand
{
baseCommand = new InputDeviceCommand(Type, kSize)
};
}
}
}