暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IEventPreProcessor.cs 831B

123456789101112131415161718
  1. namespace UnityEngine.InputSystem.LowLevel
  2. {
  3. /// <summary>
  4. /// Gives an opportunity for device to modify event data in-place before it gets propagated to the rest of the system.
  5. /// </summary>
  6. /// <remarks>
  7. /// If device also implements <see cref="IEventMerger"/> it will run first, because we don't process events ahead-of-time.
  8. /// </remarks>
  9. internal interface IEventPreProcessor
  10. {
  11. /// <summary>
  12. /// Preprocess the event. !!! Beware !!! currently events can only shrink or stay the same size.
  13. /// </summary>
  14. /// <param name="currentEventPtr">The event to preprocess.</param>
  15. /// <returns>True if event should be processed further, false if event should be skipped and ignored.</returns>
  16. bool PreProcessEvent(InputEventPtr currentEventPtr);
  17. }
  18. }