mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-12 09:28:11 +01:00
vrclient: Fix incorrect size paramter passed to lin_to_win.
CW-Bug-Id: #22729
This commit is contained in:
parent
453b5bdc5a
commit
cc38f0c8c1
36 changed files with 194 additions and 189 deletions
|
|
@ -160,8 +160,8 @@ bool cppIVRSystem_IVRSystem_017_PollNextEvent(void *linux_side, winVREvent_t_101
|
|||
bool _ret;
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1011_win_to_lin(pEvent, &lin);
|
||||
uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, (uint32_t)uncbVREvent);
|
||||
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, lin_uncbVREvent);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
|
|
@ -173,8 +173,8 @@ bool cppIVRSystem_IVRSystem_017_PollNextEventWithPose(void *linux_side, ETrackin
|
|||
bool _ret;
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1011_win_to_lin(pEvent, &lin);
|
||||
uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, (uint32_t)uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
|
|
@ -196,8 +196,8 @@ bool cppIVRSystem_IVRSystem_017_GetControllerState(void *linux_side, TrackedDevi
|
|||
bool _ret;
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin);
|
||||
unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (uint32_t)unControllerStateSize);
|
||||
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_1011_lin_to_win(&lin, pControllerState, unControllerStateSize);
|
||||
return _ret;
|
||||
|
|
@ -209,8 +209,8 @@ bool cppIVRSystem_IVRSystem_017_GetControllerStateWithPose(void *linux_side, ETr
|
|||
bool _ret;
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin);
|
||||
unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (uint32_t)unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
uint32_t lin_unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_1011_lin_to_win(&lin, pControllerState, unControllerStateSize);
|
||||
return _ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue