File size: 926 Bytes
18a519f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#if UNITY_EDITOR
using UnityEngine.InputSystem.LowLevel;

namespace UnityEngine.InputSystem
{
    /// <summary>
    /// Internal interface that allows monitoring the system for problems.
    /// </summary>
    /// <remarks>
    /// This is primarily meant to make it easier to diagnose problems in the event stream.
    ///
    /// Note that while the diagnostics hook is only enabled in the editor, when using
    /// the input debugger connected to a player it will also diagnose problems in the
    /// event stream of the player.
    /// </remarks>
    internal interface IInputDiagnostics
    {
        void OnCannotFindDeviceForEvent(InputEventPtr eventPtr);
        void OnEventTimestampOutdated(InputEventPtr eventPtr, InputDevice device);
        void OnEventFormatMismatch(InputEventPtr eventPtr, InputDevice device);
        void OnEventForDisabledDevice(InputEventPtr eventPtr, InputDevice device);
    }
}
#endif