2023-09-29 12:28:17 +03:00
|
|
|
/* This file is auto-generated, do not edit. */
|
|
|
|
#include "unix_private.h"
|
2018-01-18 22:29:49 +03:00
|
|
|
#include "cppIVRSystem_IVRSystem_012.h"
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetRecommendedRenderTargetSize( struct cppIVRSystem_IVRSystem_012_GetRecommendedRenderTargetSize_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->GetRecommendedRenderTargetSize( params->pnWidth, params->pnHeight );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetProjectionMatrix( struct cppIVRSystem_IVRSystem_012_GetProjectionMatrix_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
*params->_ret = iface->GetProjectionMatrix( params->eEye, params->fNearZ, params->fFarZ, params->eProjType );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetProjectionRaw( struct cppIVRSystem_IVRSystem_012_GetProjectionRaw_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->GetProjectionRaw( params->eEye, params->pfLeft, params->pfRight, params->pfTop, params->pfBottom );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_ComputeDistortion( struct cppIVRSystem_IVRSystem_012_ComputeDistortion_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
*params->_ret = iface->ComputeDistortion( params->eEye, params->fU, params->fV );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetEyeToHeadTransform( struct cppIVRSystem_IVRSystem_012_GetEyeToHeadTransform_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
*params->_ret = iface->GetEyeToHeadTransform( params->eEye );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetTimeSinceLastVsync( struct cppIVRSystem_IVRSystem_012_GetTimeSinceLastVsync_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->GetTimeSinceLastVsync( params->pfSecondsSinceLastVsync, params->pulFrameCounter );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetD3D9AdapterIndex( struct cppIVRSystem_IVRSystem_012_GetD3D9AdapterIndex_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (int32_t)iface->GetD3D9AdapterIndex( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetDXGIOutputInfo( struct cppIVRSystem_IVRSystem_012_GetDXGIOutputInfo_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->GetDXGIOutputInfo( params->pnAdapterIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_IsDisplayOnDesktop( struct cppIVRSystem_IVRSystem_012_IsDisplayOnDesktop_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->IsDisplayOnDesktop( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_SetDisplayVisibility( struct cppIVRSystem_IVRSystem_012_SetDisplayVisibility_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->SetDisplayVisibility( params->bIsVisibleOnDesktop );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetDeviceToAbsoluteTrackingPose( struct cppIVRSystem_IVRSystem_012_GetDeviceToAbsoluteTrackingPose_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->GetDeviceToAbsoluteTrackingPose( params->eOrigin, params->fPredictedSecondsToPhotonsFromNow, params->pTrackedDevicePoseArray, params->unTrackedDevicePoseArrayCount );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_ResetSeatedZeroPose( struct cppIVRSystem_IVRSystem_012_ResetSeatedZeroPose_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->ResetSeatedZeroPose( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetSeatedZeroPoseToStandingAbsoluteTrackingPose( struct cppIVRSystem_IVRSystem_012_GetSeatedZeroPoseToStandingAbsoluteTrackingPose_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
*params->_ret = iface->GetSeatedZeroPoseToStandingAbsoluteTrackingPose( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetRawZeroPoseToStandingAbsoluteTrackingPose( struct cppIVRSystem_IVRSystem_012_GetRawZeroPoseToStandingAbsoluteTrackingPose_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
*params->_ret = iface->GetRawZeroPoseToStandingAbsoluteTrackingPose( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetSortedTrackedDeviceIndicesOfClass( struct cppIVRSystem_IVRSystem_012_GetSortedTrackedDeviceIndicesOfClass_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetSortedTrackedDeviceIndicesOfClass( params->eTrackedDeviceClass, params->punTrackedDeviceIndexArray, params->unTrackedDeviceIndexArrayCount, params->unRelativeToTrackedDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetTrackedDeviceActivityLevel( struct cppIVRSystem_IVRSystem_012_GetTrackedDeviceActivityLevel_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetTrackedDeviceActivityLevel( params->unDeviceId );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_ApplyTransform( struct cppIVRSystem_IVRSystem_012_ApplyTransform_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->ApplyTransform( params->pOutputPose, params->pTrackedDevicePose, params->pTransform );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetTrackedDeviceIndexForControllerRole( struct cppIVRSystem_IVRSystem_012_GetTrackedDeviceIndexForControllerRole_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetTrackedDeviceIndexForControllerRole( params->unDeviceType );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetControllerRoleForTrackedDeviceIndex( struct cppIVRSystem_IVRSystem_012_GetControllerRoleForTrackedDeviceIndex_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetControllerRoleForTrackedDeviceIndex( params->unDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetTrackedDeviceClass( struct cppIVRSystem_IVRSystem_012_GetTrackedDeviceClass_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetTrackedDeviceClass( params->unDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_IsTrackedDeviceConnected( struct cppIVRSystem_IVRSystem_012_IsTrackedDeviceConnected_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->IsTrackedDeviceConnected( params->unDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetBoolTrackedDeviceProperty( struct cppIVRSystem_IVRSystem_012_GetBoolTrackedDeviceProperty_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->GetBoolTrackedDeviceProperty( params->unDeviceIndex, params->prop, params->pError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetFloatTrackedDeviceProperty( struct cppIVRSystem_IVRSystem_012_GetFloatTrackedDeviceProperty_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (float)iface->GetFloatTrackedDeviceProperty( params->unDeviceIndex, params->prop, params->pError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetInt32TrackedDeviceProperty( struct cppIVRSystem_IVRSystem_012_GetInt32TrackedDeviceProperty_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (int32_t)iface->GetInt32TrackedDeviceProperty( params->unDeviceIndex, params->prop, params->pError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetUint64TrackedDeviceProperty( struct cppIVRSystem_IVRSystem_012_GetUint64TrackedDeviceProperty_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint64_t)iface->GetUint64TrackedDeviceProperty( params->unDeviceIndex, params->prop, params->pError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetMatrix34TrackedDeviceProperty( struct cppIVRSystem_IVRSystem_012_GetMatrix34TrackedDeviceProperty_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
*params->_ret = iface->GetMatrix34TrackedDeviceProperty( params->unDeviceIndex, params->prop, params->pError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetStringTrackedDeviceProperty( struct cppIVRSystem_IVRSystem_012_GetStringTrackedDeviceProperty_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->GetStringTrackedDeviceProperty( params->unDeviceIndex, params->prop, params->pchValue, params->unBufferSize, params->pError );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetPropErrorNameFromEnum( struct cppIVRSystem_IVRSystem_012_GetPropErrorNameFromEnum_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (const char *)iface->GetPropErrorNameFromEnum( params->error );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_PollNextEvent( struct cppIVRSystem_IVRSystem_012_PollNextEvent_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
u_VREvent_t_103 u_pEvent;
|
|
|
|
if (params->pEvent) u_pEvent = *params->pEvent;
|
|
|
|
uint32_t u_uncbVREvent = params->uncbVREvent ? sizeof(u_pEvent) : 0;
|
|
|
|
params->_ret = (bool)iface->PollNextEvent( params->pEvent ? &u_pEvent : nullptr, u_uncbVREvent );
|
|
|
|
if (params->pEvent) *params->pEvent = u_pEvent;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_PollNextEventWithPose( struct cppIVRSystem_IVRSystem_012_PollNextEventWithPose_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
u_VREvent_t_103 u_pEvent;
|
|
|
|
if (params->pEvent) u_pEvent = *params->pEvent;
|
|
|
|
uint32_t u_uncbVREvent = params->uncbVREvent ? sizeof(u_pEvent) : 0;
|
|
|
|
params->_ret = (bool)iface->PollNextEventWithPose( params->eOrigin, params->pEvent ? &u_pEvent : nullptr, u_uncbVREvent, params->pTrackedDevicePose );
|
|
|
|
if (params->pEvent) *params->pEvent = u_pEvent;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetEventTypeNameFromEnum( struct cppIVRSystem_IVRSystem_012_GetEventTypeNameFromEnum_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (const char *)iface->GetEventTypeNameFromEnum( params->eType );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetHiddenAreaMesh( struct cppIVRSystem_IVRSystem_012_GetHiddenAreaMesh_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
*params->_ret = iface->GetHiddenAreaMesh( params->eEye );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetControllerState( struct cppIVRSystem_IVRSystem_012_GetControllerState_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
u_VRControllerState001_t u_pControllerState;
|
|
|
|
if (params->pControllerState) u_pControllerState = *params->pControllerState;
|
|
|
|
params->_ret = (bool)iface->GetControllerState( params->unControllerDeviceIndex, params->pControllerState ? &u_pControllerState : nullptr );
|
|
|
|
if (params->pControllerState) *params->pControllerState = u_pControllerState;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetControllerStateWithPose( struct cppIVRSystem_IVRSystem_012_GetControllerStateWithPose_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
u_VRControllerState001_t u_pControllerState;
|
|
|
|
if (params->pControllerState) u_pControllerState = *params->pControllerState;
|
|
|
|
params->_ret = (bool)iface->GetControllerStateWithPose( params->eOrigin, params->unControllerDeviceIndex, params->pControllerState ? &u_pControllerState : nullptr, params->pTrackedDevicePose );
|
|
|
|
if (params->pControllerState) *params->pControllerState = u_pControllerState;
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_TriggerHapticPulse( struct cppIVRSystem_IVRSystem_012_TriggerHapticPulse_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->TriggerHapticPulse( params->unControllerDeviceIndex, params->unAxisId, params->usDurationMicroSec );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetButtonIdNameFromEnum( struct cppIVRSystem_IVRSystem_012_GetButtonIdNameFromEnum_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (const char *)iface->GetButtonIdNameFromEnum( params->eButtonId );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_GetControllerAxisTypeNameFromEnum( struct cppIVRSystem_IVRSystem_012_GetControllerAxisTypeNameFromEnum_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (const char *)iface->GetControllerAxisTypeNameFromEnum( params->eAxisType );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_CaptureInputFocus( struct cppIVRSystem_IVRSystem_012_CaptureInputFocus_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->CaptureInputFocus( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_ReleaseInputFocus( struct cppIVRSystem_IVRSystem_012_ReleaseInputFocus_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->ReleaseInputFocus( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_IsInputFocusCapturedByAnotherProcess( struct cppIVRSystem_IVRSystem_012_IsInputFocusCapturedByAnotherProcess_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (bool)iface->IsInputFocusCapturedByAnotherProcess( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_DriverDebugRequest( struct cppIVRSystem_IVRSystem_012_DriverDebugRequest_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->DriverDebugRequest( params->unDeviceIndex, params->pchRequest, params->pchResponseBuffer, params->unResponseBufferSize );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_PerformFirmwareUpdate( struct cppIVRSystem_IVRSystem_012_PerformFirmwareUpdate_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
|
|
|
params->_ret = (uint32_t)iface->PerformFirmwareUpdate( params->unDeviceIndex );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_AcknowledgeQuit_Exiting( struct cppIVRSystem_IVRSystem_012_AcknowledgeQuit_Exiting_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->AcknowledgeQuit_Exiting( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRSystem_IVRSystem_012_AcknowledgeQuit_UserPrompt( struct cppIVRSystem_IVRSystem_012_AcknowledgeQuit_UserPrompt_params *params )
|
2018-01-18 22:29:49 +03:00
|
|
|
{
|
2023-09-29 12:28:17 +03:00
|
|
|
struct u_IVRSystem_IVRSystem_012 *iface = (struct u_IVRSystem_IVRSystem_012 *)params->linux_side;
|
2023-09-28 11:22:41 +03:00
|
|
|
iface->AcknowledgeQuit_UserPrompt( );
|
2018-01-18 22:29:49 +03:00
|
|
|
}
|
|
|
|
|