mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-24 00:04:34 +01:00
vrclient: Pass Linux struct size to Linux GetControllerState
This commit is contained in:
parent
68443426f9
commit
6b5f94f2ef
9 changed files with 16 additions and 14 deletions
|
|
@ -191,7 +191,7 @@ bool cppIVRSystem_IVRSystem_019_GetControllerState(void *linux_side, TrackedDevi
|
|||
{
|
||||
VRControllerState001_t lin;
|
||||
bool _ret;
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, &lin, (uint32_t)unControllerStateSize);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, &lin, sizeof(lin));
|
||||
struct_VRControllerState001_t_1012_lin_to_win(&lin, pControllerState);
|
||||
return _ret;
|
||||
}
|
||||
|
|
@ -200,7 +200,7 @@ bool cppIVRSystem_IVRSystem_019_GetControllerStateWithPose(void *linux_side, ETr
|
|||
{
|
||||
VRControllerState001_t lin;
|
||||
bool _ret;
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, &lin, (uint32_t)unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, &lin, sizeof(lin), (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
struct_VRControllerState001_t_1012_lin_to_win(&lin, pControllerState);
|
||||
return _ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue