Firstborn/Library/PackageCache/com.unity.inputsystem@1.5.1/InputSystem/Devices/IEventPreProcessor.cs
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

19 lines
831 B
C#

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