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

33 lines
924 B
C#

using System.Runtime.InteropServices;
using UnityEngine.InputSystem.Utilities;
namespace UnityEngine.InputSystem.LowLevel
{
/// <summary>
/// Command to re-enable a device that has been disabled with <see cref="DisableDeviceCommand"/>.
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = kSize)]
public struct EnableDeviceCommand : IInputDeviceCommandInfo
{
public static FourCC Type { get { return new FourCC('E', 'N', 'B', 'L'); } }
internal const int kSize = InputDeviceCommand.kBaseCommandSize;
[FieldOffset(0)]
public InputDeviceCommand baseCommand;
public FourCC typeStatic
{
get { return Type; }
}
public static EnableDeviceCommand Create()
{
return new EnableDeviceCommand
{
baseCommand = new InputDeviceCommand(Type, kSize)
};
}
}
}