IInputManager.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using Avalonia.Input.Raw;
  3. using Avalonia.Metadata;
  4. namespace Avalonia.Input
  5. {
  6. /// <summary>
  7. /// Receives input from the windowing subsystem and dispatches it to interested parties
  8. /// for processing.
  9. /// </summary>
  10. [NotClientImplementable]
  11. public interface IInputManager
  12. {
  13. /// <summary>
  14. /// Gets an observable that notifies on each input event received before
  15. /// <see cref="Process"/>.
  16. /// </summary>
  17. IObservable<RawInputEventArgs> PreProcess { get; }
  18. /// <summary>
  19. /// Gets an observable that notifies on each input event received.
  20. /// </summary>
  21. IObservable<RawInputEventArgs> Process { get; }
  22. /// <summary>
  23. /// Gets an observable that notifies on each input event received after
  24. /// <see cref="Process"/>.
  25. /// </summary>
  26. IObservable<RawInputEventArgs> PostProcess { get; }
  27. /// <summary>
  28. /// Processes a raw input event.
  29. /// </summary>
  30. /// <param name="e">The raw input event.</param>
  31. void ProcessInput(RawInputEventArgs e);
  32. }
  33. }