Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

DisableDeviceCommand.cs 908B

1234567891011121314151617181920212223242526272829303132
  1. using System.Runtime.InteropServices;
  2. using UnityEngine.InputSystem.Utilities;
  3. namespace UnityEngine.InputSystem.LowLevel
  4. {
  5. /// <summary>
  6. /// Command to tell the runtime to no longer send events for the given device.
  7. /// </summary>
  8. [StructLayout(LayoutKind.Explicit, Size = kSize)]
  9. public struct DisableDeviceCommand : IInputDeviceCommandInfo
  10. {
  11. public static FourCC Type { get { return new FourCC('D', 'S', '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 DisableDeviceCommand Create()
  20. {
  21. return new DisableDeviceCommand
  22. {
  23. baseCommand = new InputDeviceCommand(Type, kSize)
  24. };
  25. }
  26. }
  27. }