mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-11 08:57:59 +01:00
parent
0c8b164036
commit
0b01dbee04
36 changed files with 218 additions and 124 deletions
|
|
@ -155,7 +155,8 @@ bool cppIVRSystem_IVRSystem_015_PollNextEvent(void *linux_side, winVREvent_t_107
|
|||
bool _ret;
|
||||
if(pEvent)
|
||||
struct_VREvent_t_107_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_107_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
|
|
@ -167,7 +168,8 @@ bool cppIVRSystem_IVRSystem_015_PollNextEventWithPose(void *linux_side, ETrackin
|
|||
bool _ret;
|
||||
if(pEvent)
|
||||
struct_VREvent_t_107_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_107_lin_to_win(&lin, pEvent, uncbVREvent);
|
||||
return _ret;
|
||||
|
|
@ -189,7 +191,8 @@ bool cppIVRSystem_IVRSystem_015_GetControllerState(void *linux_side, TrackedDevi
|
|||
bool _ret;
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_107_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_107_lin_to_win(&lin, pControllerState, unControllerStateSize);
|
||||
return _ret;
|
||||
|
|
@ -201,7 +204,8 @@ bool cppIVRSystem_IVRSystem_015_GetControllerStateWithPose(void *linux_side, ETr
|
|||
bool _ret;
|
||||
if(pControllerState)
|
||||
struct_VRControllerState001_t_107_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_107_lin_to_win(&lin, pControllerState, unControllerStateSize);
|
||||
return _ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue