A game about forced loneliness, made by TACStudios
1namespace 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}