internal static void NotifyUpdate(NativeInputUpdateType updateType) { NativeUpdateCallback nativeUpdateCallback = NativeInputSystem.onUpdate; if (nativeUpdateCallback != null) { nativeUpdateCallback(updateType); } }
internal static void NotifyUpdate(NativeInputUpdateType updateType, int eventCount, IntPtr eventData) { NativeUpdateCallback callback = onUpdate; if (callback != null) { callback(updateType, eventCount, eventData); } }
internal static void NotifyUpdate(NativeInputUpdateType updateType) { NativeUpdateCallback callback = onUpdate; if (callback != null) { callback(updateType); } }
internal static unsafe void NotifyUpdate(NativeInputUpdateType updateType, IntPtr eventBuffer) { NativeUpdateCallback callback = onUpdate; var eventBufferPtr = (NativeInputEventBuffer *)eventBuffer.ToPointer(); if (callback == null) { eventBufferPtr->eventCount = 0; eventBufferPtr->sizeInBytes = 0; } else { callback(updateType, eventBufferPtr); } }
internal unsafe static void NotifyUpdate(NativeInputUpdateType updateType, IntPtr eventBuffer) { NativeUpdateCallback nativeUpdateCallback = NativeInputSystem.onUpdate; NativeInputEventBuffer *ptr = (NativeInputEventBuffer *)eventBuffer.ToPointer(); bool flag = nativeUpdateCallback == null; if (flag) { ptr->eventCount = 0; ptr->sizeInBytes = 0; } else { nativeUpdateCallback(updateType, ptr); } }