mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-27 09:44:49 +01:00
vrclient: Dereference typedefs
This commit is contained in:
parent
ede0f96149
commit
223286df88
52 changed files with 172 additions and 94 deletions
|
|
@ -81,7 +81,14 @@ uint32_t cppIVRRenderModels_IVRRenderModels_004_GetComponentRenderModelName(void
|
|||
|
||||
bool cppIVRRenderModels_IVRRenderModels_004_GetComponentState(void *linux_side, const char * pchRenderModelName, const char * pchComponentName, VRControllerState_t * pControllerState, RenderModel_ControllerMode_State_t * pState, RenderModel_ComponentState_t * pComponentState)
|
||||
{
|
||||
return ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, (const vr::VRControllerState_t *)pControllerState, (const vr::RenderModel_ControllerMode_State_t *)pState, (vr::RenderModel_ComponentState_t *)pComponentState);
|
||||
const VRControllerState_t lin;
|
||||
bool _ret;
|
||||
if(pControllerState)
|
||||
struct_const VRControllerState_t_0918_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRRenderModels*)linux_side)->GetComponentState((const char *)pchRenderModelName, (const char *)pchComponentName, pControllerState ? &lin : nullptr, (const vr::RenderModel_ControllerMode_State_t *)pState, (vr::RenderModel_ComponentState_t *)pComponentState);
|
||||
if(pControllerState)
|
||||
struct_const VRControllerState_t_0918_lin_to_win(&lin, pControllerState);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
bool cppIVRRenderModels_IVRRenderModels_004_RenderModelHasComponent(void *linux_side, const char * pchRenderModelName, const char * pchComponentName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue