Пример #1
0
    void Update()
    {
#if UNITY_EDITOR
        if (Application.isEditor && !WaveVR.Instance.isSimulatorOn)
        {
            return;
        }
#endif

        bool ret = false;
        do
        {
            WVR_Event_t vrevent = new WVR_Event_t();
#if UNITY_EDITOR
            if (Application.isEditor)
            {
                ret = WaveVR_Utils.WVR_PollEventQueue_S(ref vrevent);
            }
            else
#endif
            {
                ret = Interop.WVR_PollEventQueue(ref vrevent);
            }
            if (ret)
            {
                processVREvent(vrevent);
            }
        } while (ret);
    }