Maze / Library /PackageCache /com.unity.inputsystem@1.6.1 /InputSystem /Devices /Commands /RequestSyncCommand.cs
| using System.Runtime.InteropServices; | |
| using UnityEngine.InputSystem.Utilities; | |
| namespace UnityEngine.InputSystem.LowLevel | |
| { | |
| /// <summary> | |
| /// A command to tell the runtime to sync the device to it's last known state. | |
| /// </summary> | |
| /// <remarks> | |
| /// This triggers an event from the underlying device that represents the whole, current state. | |
| /// </remarks> | |
| /// <seealso cref="RequestResetCommand"/> | |
| [] | |
| public struct RequestSyncCommand : IInputDeviceCommandInfo | |
| { | |
| public static FourCC Type => new FourCC('S', 'Y', 'N', 'C'); | |
| internal const int kSize = InputDeviceCommand.kBaseCommandSize; | |
| [] | |
| public InputDeviceCommand baseCommand; | |
| public FourCC typeStatic => Type; | |
| public static RequestSyncCommand Create() | |
| { | |
| return new RequestSyncCommand | |
| { | |
| baseCommand = new InputDeviceCommand(Type, kSize) | |
| }; | |
| } | |
| } | |
| } | |