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 reset the device to it's default state.
8 /// </summary>
9 /// <remarks>
10 /// This triggers an event being sent from the device that represents an empty, or untouched device.
11 /// </remarks>
12 /// <seealso cref="RequestSyncCommand"/>
13 [StructLayout(LayoutKind.Explicit, Size = InputDeviceCommand.kBaseCommandSize)]
14 public struct RequestResetCommand : IInputDeviceCommandInfo
15 {
16 public static FourCC Type => new FourCC('R', 'S', 'E', 'T');
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 RequestResetCommand Create()
26 {
27 return new RequestResetCommand
28 {
29 baseCommand = new InputDeviceCommand(Type, kSize)
30 };
31 }
32 }
33}