mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-12 01:17:54 +01:00
parent
4fc0934c83
commit
1909c6d441
36 changed files with 218 additions and 124 deletions
|
|
@ -160,7 +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);
|
||||
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->PollNextEvent(pEvent ? &lin : nullptr, (uint32_t)uncbVREvent);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
|
|
@ -172,7 +173,8 @@ bool cppIVRSystem_IVRSystem_017_PollNextEventWithPose(void *linux_side, ETrackin
|
|||
bool _ret;
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1011_win_to_lin(pEvent, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)eOrigin, pEvent ? &lin : nullptr, (uint32_t)uncbVREvent, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1011_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
|
|
@ -194,7 +196,8 @@ bool cppIVRSystem_IVRSystem_017_GetControllerState(void *linux_side, TrackedDevi
|
|||
bool _ret;
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, unControllerStateSize ? sizeof(lin) : 0);
|
||||
unControllerStateSize = unControllerStateSize ? sizeof(lin) : 0;
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, (uint32_t)unControllerStateSize);
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_1011_lin_to_win(&lin, pControllerState, unControllerStateSize);
|
||||
return _ret;
|
||||
|
|
@ -206,7 +209,8 @@ bool cppIVRSystem_IVRSystem_017_GetControllerStateWithPose(void *linux_side, ETr
|
|||
bool _ret;
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_1011_win_to_lin(pControllerState, &lin);
|
||||
_ret = ((IVRSystem*)linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)eOrigin, (vr::TrackedDeviceIndex_t)unControllerDeviceIndex, pControllerState ? &lin : nullptr, unControllerStateSize ? sizeof(lin) : 0, (vr::TrackedDevicePose_t *)pTrackedDevicePose);
|
||||
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);
|
||||
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