IInputUpdateCallbackReceiver.cs 668 B

123456789101112131415
  1. namespace UnityEngine.InputSystem.LowLevel
  2. {
  3. /// <summary>
  4. /// Interface to allow custom input devices to receive callbacks when the input system is updated.
  5. /// </summary>
  6. /// <remarks>
  7. /// If an <see cref="InputDevice"/> class implements the IInputUpdateCallbackReceiver interface, any instance of the
  8. /// InputDevice will have it's <see cref="OnUpdate"/> method called whenever the input system updates. This can be used
  9. /// to implement custom state update logic for virtual input devices which track some state in the project.
  10. /// </remarks>
  11. public interface IInputUpdateCallbackReceiver
  12. {
  13. void OnUpdate();
  14. }
  15. }