MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / GetComponentStateForDevicePath

Method GetComponentStateForDevicePath

headers/openvr_api.cs:4017–4025  ·  view source on GitHub ↗
(string pchRenderModelName,string pchComponentName,ulong devicePath,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState)

Source from the content-addressed store, hash-verified

4015 return result;
4016 }
4017 public bool GetComponentStateForDevicePath(string pchRenderModelName,string pchComponentName,ulong devicePath,ref RenderModel_ControllerMode_State_t pState,ref RenderModel_ComponentState_t pComponentState)
4018 {
4019 IntPtr pchRenderModelNameUtf8 = Utils.ToUtf8(pchRenderModelName);
4020 IntPtr pchComponentNameUtf8 = Utils.ToUtf8(pchComponentName);
4021 bool result = FnTable.GetComponentStateForDevicePath(pchRenderModelNameUtf8,pchComponentNameUtf8,devicePath,ref pState,ref pComponentState);
4022 Marshal.FreeHGlobal(pchRenderModelNameUtf8);
4023 Marshal.FreeHGlobal(pchComponentNameUtf8);
4024 return result;
4025 }
4026// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were
4027// originally mis-compiled with the wrong packing for Linux and OSX.
4028 [UnmanagedFunctionPointer(CallingConvention.StdCall)]

Callers

nothing calls this directly

Calls 1

ToUtf8Method · 0.80

Tested by

no test coverage detected