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 /// A command to tell the runtime to sync the device to it's last known state. 8 /// </summary> 9 /// <remarks> 10 /// This triggers an event from the underlying device that represents the whole, current state. 11 /// </remarks> 12 /// <seealso cref="RequestResetCommand"/> 13 [StructLayout(LayoutKind.Explicit, Size = InputDeviceCommand.kBaseCommandSize)] 14 public struct RequestSyncCommand : IInputDeviceCommandInfo 15 { 16 public static FourCC Type => new FourCC('S', 'Y', 'N', 'C'); 17 18 internal const int kSize = InputDeviceCommand.kBaseCommandSize; 19 20 [FieldOffset(0)] 21 public InputDeviceCommand baseCommand; 22 23 public FourCC typeStatic => Type; 24 25 public static RequestSyncCommand Create() 26 { 27 return new RequestSyncCommand 28 { 29 baseCommand = new InputDeviceCommand(Type, kSize) 30 }; 31 } 32 } 33}