vrclient: Simplify unix side parameter conversions.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-09-27 14:09:21 +02:00
parent 4852a1bfdd
commit 8d07121950
55 changed files with 630 additions and 634 deletions

View file

@ -313,13 +313,13 @@ EVROverlayError cppIVROverlay_IVROverlay_020_GetTransformForOverlayCoordinates(v
bool cppIVROverlay_IVROverlay_020_PollNextOverlayEvent(void *linux_side, VROverlayHandle_t ulOverlayHandle, winVREvent_t_1715 *pEvent, uint32_t uncbVREvent)
{
bool _ret;
VREvent_t lin;
VREvent_t lin_pEvent;
if (pEvent)
struct_VREvent_t_1715_win_to_lin(pEvent, &lin);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent);
struct_VREvent_t_1715_win_to_lin(pEvent, &lin_pEvent);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin_pEvent) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin_pEvent : nullptr, lin_uncbVREvent);
if (pEvent)
struct_VREvent_t_1715_lin_to_win(&lin, pEvent, uncbVREvent);
struct_VREvent_t_1715_lin_to_win(&lin_pEvent, pEvent, uncbVREvent);
return _ret;
}