IInputDiagnostics.cs 926 B

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