vrclient: Truncate short VREvent_t structs

This commit is contained in:
Andrew Eikum 2019-10-08 15:04:48 -05:00
parent b32161679d
commit 46f1a6c236
76 changed files with 371 additions and 353 deletions

View file

@ -177,7 +177,7 @@ bool cppIVRSystem_IVRSystem_010_GetControllerState(void *linux_side, TrackedDevi
struct_VRControllerState001_t_0914_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr);
if(pControllerState)
struct_VRControllerState001_t_0914_lin_to_win(&lin, pControllerState);
struct_VRControllerState001_t_0914_lin_to_win(&lin, pControllerState, -1);
return _ret;
}
@ -189,7 +189,7 @@ bool cppIVRSystem_IVRSystem_010_GetControllerStateWithPose(void *linux_side, ETr
struct_VRControllerState001_t_0914_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
if(pControllerState)
struct_VRControllerState001_t_0914_lin_to_win(&lin, pControllerState);
struct_VRControllerState001_t_0914_lin_to_win(&lin, pControllerState, -1);
return _ret;
}