| 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)] |