예제 #1
0
    // Token: 0x0600009E RID: 158 RVA: 0x00007744 File Offset: 0x00005944
    public bool PollNextEvent(ref global::Valve.VR.VREvent_t pEvent)
    {
        global::Valve.VR.CVROverlay overlay = global::Valve.VR.OpenVR.Overlay;
        bool flag = overlay == null;
        bool result;

        if (flag)
        {
            result = false;
        }
        else
        {
            uint uncbVREvent = (uint)global::System.Runtime.InteropServices.Marshal.SizeOf(typeof(global::Valve.VR.VREvent_t));
            result = overlay.PollNextOverlayEvent(this.handle, ref pEvent, uncbVREvent);
        }
        return(result);
    }