A game about forced loneliness, made by TACStudios
1using System.Runtime.InteropServices;
2using UnityEngine.InputSystem.Utilities;
3
4namespace UnityEngine.InputSystem.LowLevel
5{
6 /// <summary>
7 /// Command to re-enable a device that has been disabled with <see cref="DisableDeviceCommand"/>.
8 /// </summary>
9 [StructLayout(LayoutKind.Explicit, Size = kSize)]
10 public struct EnableDeviceCommand : IInputDeviceCommandInfo
11 {
12 public static FourCC Type { get { return new FourCC('E', 'N', 'B', 'L'); } }
13
14 internal const int kSize = InputDeviceCommand.kBaseCommandSize;
15
16 [FieldOffset(0)]
17 public InputDeviceCommand baseCommand;
18
19 public FourCC typeStatic
20 {
21 get { return Type; }
22 }
23
24 public static EnableDeviceCommand Create()
25 {
26 return new EnableDeviceCommand
27 {
28 baseCommand = new InputDeviceCommand(Type, kSize)
29 };
30 }
31 }
32}