Maze / Library /PackageCache /com.unity.inputsystem@1.6.1 /InputSystem /Devices /Commands /QuerySamplingFrequencyCommand.cs
| using System.Runtime.InteropServices; | |
| using UnityEngine.InputSystem.Utilities; | |
| namespace UnityEngine.InputSystem.LowLevel | |
| { | |
| [] | |
| internal struct QuerySamplingFrequencyCommand : IInputDeviceCommandInfo | |
| { | |
| public static FourCC Type { get { return new FourCC('S', 'M', 'P', 'L'); } } | |
| internal const int kSize = InputDeviceCommand.kBaseCommandSize + sizeof(float); | |
| [] | |
| public InputDeviceCommand baseCommand; | |
| [] | |
| public float frequency; | |
| public FourCC typeStatic | |
| { | |
| get { return Type; } | |
| } | |
| public static QuerySamplingFrequencyCommand Create() | |
| { | |
| return new QuerySamplingFrequencyCommand | |
| { | |
| baseCommand = new InputDeviceCommand(Type, kSize) | |
| }; | |
| } | |
| } | |
| } | |