暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

IInputDiagnostics.cs 926B

123456789101112131415161718192021222324
  1. #if UNITY_EDITOR
  2. using UnityEngine.InputSystem.LowLevel;
  3. namespace UnityEngine.InputSystem
  4. {
  5. /// <summary>
  6. /// Internal interface that allows monitoring the system for problems.
  7. /// </summary>
  8. /// <remarks>
  9. /// This is primarily meant to make it easier to diagnose problems in the event stream.
  10. ///
  11. /// Note that while the diagnostics hook is only enabled in the editor, when using
  12. /// the input debugger connected to a player it will also diagnose problems in the
  13. /// event stream of the player.
  14. /// </remarks>
  15. internal interface IInputDiagnostics
  16. {
  17. void OnCannotFindDeviceForEvent(InputEventPtr eventPtr);
  18. void OnEventTimestampOutdated(InputEventPtr eventPtr, InputDevice device);
  19. void OnEventFormatMismatch(InputEventPtr eventPtr, InputDevice device);
  20. void OnEventForDisabledDevice(InputEventPtr eventPtr, InputDevice device);
  21. }
  22. }
  23. #endif