Exemplo n.º 1
0
        private bool TryGetComponentState(CVRSystem vrSystem, CVRRenderModels vrRenderModels, string componentName, out RenderModel_ComponentState_t componentState)
        {
            componentState = default(RenderModel_ComponentState_t);
            var modeState = default(RenderModel_ControllerMode_State_t);

            return(vrRenderModels.GetComponentStateForDevicePath(loadedModelName, componentName, SteamVRModule.GetInputSourceHandleForDevice(m_deviceIndex), ref modeState, ref componentState));
        }