Exemplo n.º 1
0
 public void ProcessQueue(Queue <UniCAVEInputSystem.InputEventBytes> queue)
 {
     while (queue.Count > 0)
     {
         UniCAVEInputSystem.InputEventBytes ieb = queue.Dequeue();
         InputEventPtr iep = ieb.ToInputEventPtr();
         ProcessEvent(iep);
     }
 }
        unsafe public void ProcessEventsBytes(Queue <InputEventPtr> queue)
        {
            while (queue.Count > 0)
            {
                int maxItems = Mathf.Clamp(TEMP_MAX_ITEMS, 0, queue.Count);
                UniCAVEInputSystem.InputEventBytes[] ieb = new UniCAVEInputSystem.InputEventBytes[maxItems];
                for (int i = 0; i < ieb.Length; i++)
                {
                    InputEventPtr iep = queue.Dequeue();
                    ieb[i] = new UniCAVEInputSystem.InputEventBytes(iep);
                }

                if (SendInput)
                {
                    RpcProcessEventsBytes(ieb);
                }
            }
        }
 public void SendEventBytes(UniCAVEInputSystem.InputEventBytes ieb)
 {
     UniCAVEInputSystem.HeadNodeInput.Enqueue(ieb);
 }