No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EnableDeviceCommand.cs 924B

1234567891011121314151617181920212223242526272829303132
  1. using System.Runtime.InteropServices;
  2. using UnityEngine.InputSystem.Utilities;
  3. namespace UnityEngine.InputSystem.LowLevel
  4. {
  5. /// <summary>
  6. /// Command to re-enable a device that has been disabled with <see cref="DisableDeviceCommand"/>.
  7. /// </summary>
  8. [StructLayout(LayoutKind.Explicit, Size = kSize)]
  9. public struct EnableDeviceCommand : IInputDeviceCommandInfo
  10. {
  11. public static FourCC Type { get { return new FourCC('E', 'N', 'B', 'L'); } }
  12. internal const int kSize = InputDeviceCommand.kBaseCommandSize;
  13. [FieldOffset(0)]
  14. public InputDeviceCommand baseCommand;
  15. public FourCC typeStatic
  16. {
  17. get { return Type; }
  18. }
  19. public static EnableDeviceCommand Create()
  20. {
  21. return new EnableDeviceCommand
  22. {
  23. baseCommand = new InputDeviceCommand(Type, kSize)
  24. };
  25. }
  26. }
  27. }