internal static void NotifyUpdate(NativeInputUpdateType updateType)
        {
            NativeUpdateCallback nativeUpdateCallback = NativeInputSystem.onUpdate;

            if (nativeUpdateCallback != null)
            {
                nativeUpdateCallback(updateType);
            }
        }
示例#2
0
        internal static void NotifyUpdate(NativeInputUpdateType updateType, int eventCount, IntPtr eventData)
        {
            NativeUpdateCallback callback = onUpdate;

            if (callback != null)
            {
                callback(updateType, eventCount, eventData);
            }
        }
示例#3
0
        internal static void NotifyUpdate(NativeInputUpdateType updateType)
        {
            NativeUpdateCallback callback = onUpdate;

            if (callback != null)
            {
                callback(updateType);
            }
        }
示例#4
0
        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);
            }
        }
示例#5
0
        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);
            }
        }