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