vrclient: Pass write function as parameter to handle_method*.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-09-27 15:18:31 +02:00 committed by Arkadiusz Hiler
parent 9130b93597
commit 37853f8469
55 changed files with 290 additions and 290 deletions

View file

@ -195,10 +195,10 @@ bool cppIVRSystem_IVRSystem_005_GetControllerState(void *linux_side, TrackedDevi
{
bool _ret;
VRControllerState001_t lin;
if(pControllerState)
if (pControllerState)
struct_VRControllerState001_t_098_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr);
if(pControllerState)
if (pControllerState)
struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState, -1);
return _ret;
}
@ -207,10 +207,10 @@ bool cppIVRSystem_IVRSystem_005_GetControllerStateWithPose(void *linux_side, Tra
{
bool _ret;
VRControllerState001_t lin;
if(pControllerState)
if (pControllerState)
struct_VRControllerState001_t_098_win_to_lin(pControllerState, &lin);
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::TrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
if(pControllerState)
if (pControllerState)
struct_VRControllerState001_t_098_lin_to_win(&lin, pControllerState, -1);
return _ret;
}