A game about forced loneliness, made by TACStudios
1using System.Runtime.InteropServices;
2using UnityEngine.InputSystem.Utilities;
3
4namespace UnityEngine.InputSystem.LowLevel
5{
6 [StructLayout(LayoutKind.Explicit, Size = kSize)]
7 internal struct QuerySamplingFrequencyCommand : IInputDeviceCommandInfo
8 {
9 public static FourCC Type { get { return new FourCC('S', 'M', 'P', 'L'); } }
10
11 internal const int kSize = InputDeviceCommand.kBaseCommandSize + sizeof(float);
12
13 [FieldOffset(0)]
14 public InputDeviceCommand baseCommand;
15
16 [FieldOffset(InputDeviceCommand.kBaseCommandSize)]
17 public float frequency;
18
19 public FourCC typeStatic
20 {
21 get { return Type; }
22 }
23
24 public static QuerySamplingFrequencyCommand Create()
25 {
26 return new QuerySamplingFrequencyCommand
27 {
28 baseCommand = new InputDeviceCommand(Type, kSize)
29 };
30 }
31 }
32}