Yucom/vrclient_x64/vrclient_x64/cppIVRSystem_IVRSystem_020.cpp

279 lines
16 KiB
C++
Raw Normal View History

2019-07-13 12:17:57 +02:00
#include "vrclient_private.h"
#include "vrclient_defs.h"
2019-12-31 21:05:30 +01:00
#include "openvr_v1.7.15/ivrclientcore.h"
2019-07-13 12:17:57 +02:00
using namespace vr;
extern "C" {
#include "struct_converters.h"
}
#include "cppIVRSystem_IVRSystem_020.h"
#ifdef __cplusplus
extern "C" {
#endif
void cppIVRSystem_IVRSystem_020_GetRecommendedRenderTargetSize( struct cppIVRSystem_IVRSystem_020_GetRecommendedRenderTargetSize_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->GetRecommendedRenderTargetSize((uint32_t *)params->pnWidth, (uint32_t *)params->pnHeight);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetProjectionMatrix( struct cppIVRSystem_IVRSystem_020_GetProjectionMatrix_params *params )
2019-07-13 12:17:57 +02:00
{
*params->_ret = ((IVRSystem*)params->linux_side)->GetProjectionMatrix((vr::EVREye)params->eEye, (float)params->fNearZ, (float)params->fFarZ);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetProjectionRaw( struct cppIVRSystem_IVRSystem_020_GetProjectionRaw_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->GetProjectionRaw((vr::EVREye)params->eEye, (float *)params->pfLeft, (float *)params->pfRight, (float *)params->pfTop, (float *)params->pfBottom);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_ComputeDistortion( struct cppIVRSystem_IVRSystem_020_ComputeDistortion_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->ComputeDistortion((vr::EVREye)params->eEye, (float)params->fU, (float)params->fV, (vr::DistortionCoordinates_t *)params->pDistortionCoordinates);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetEyeToHeadTransform( struct cppIVRSystem_IVRSystem_020_GetEyeToHeadTransform_params *params )
2019-07-13 12:17:57 +02:00
{
*params->_ret = ((IVRSystem*)params->linux_side)->GetEyeToHeadTransform((vr::EVREye)params->eEye);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetTimeSinceLastVsync( struct cppIVRSystem_IVRSystem_020_GetTimeSinceLastVsync_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetTimeSinceLastVsync((float *)params->pfSecondsSinceLastVsync, (uint64_t *)params->pulFrameCounter);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetD3D9AdapterIndex( struct cppIVRSystem_IVRSystem_020_GetD3D9AdapterIndex_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetD3D9AdapterIndex();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetDXGIOutputInfo( struct cppIVRSystem_IVRSystem_020_GetDXGIOutputInfo_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->GetDXGIOutputInfo((int32_t *)params->pnAdapterIndex);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetOutputDevice( struct cppIVRSystem_IVRSystem_020_GetOutputDevice_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->GetOutputDevice((uint64_t *)params->pnDevice, (vr::ETextureType)params->textureType, (VkInstance_T *)params->pInstance);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_IsDisplayOnDesktop( struct cppIVRSystem_IVRSystem_020_IsDisplayOnDesktop_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->IsDisplayOnDesktop();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_SetDisplayVisibility( struct cppIVRSystem_IVRSystem_020_SetDisplayVisibility_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->SetDisplayVisibility((bool)params->bIsVisibleOnDesktop);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetDeviceToAbsoluteTrackingPose( struct cppIVRSystem_IVRSystem_020_GetDeviceToAbsoluteTrackingPose_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->GetDeviceToAbsoluteTrackingPose((vr::ETrackingUniverseOrigin)params->eOrigin, (float)params->fPredictedSecondsToPhotonsFromNow, (vr::TrackedDevicePose_t *)params->pTrackedDevicePoseArray, (uint32_t)params->unTrackedDevicePoseArrayCount);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_ResetSeatedZeroPose( struct cppIVRSystem_IVRSystem_020_ResetSeatedZeroPose_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->ResetSeatedZeroPose();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetSeatedZeroPoseToStandingAbsoluteTrackingPose( struct cppIVRSystem_IVRSystem_020_GetSeatedZeroPoseToStandingAbsoluteTrackingPose_params *params )
2019-07-13 12:17:57 +02:00
{
*params->_ret = ((IVRSystem*)params->linux_side)->GetSeatedZeroPoseToStandingAbsoluteTrackingPose();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetRawZeroPoseToStandingAbsoluteTrackingPose( struct cppIVRSystem_IVRSystem_020_GetRawZeroPoseToStandingAbsoluteTrackingPose_params *params )
2019-07-13 12:17:57 +02:00
{
*params->_ret = ((IVRSystem*)params->linux_side)->GetRawZeroPoseToStandingAbsoluteTrackingPose();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetSortedTrackedDeviceIndicesOfClass( struct cppIVRSystem_IVRSystem_020_GetSortedTrackedDeviceIndicesOfClass_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetSortedTrackedDeviceIndicesOfClass((vr::ETrackedDeviceClass)params->eTrackedDeviceClass, (vr::TrackedDeviceIndex_t *)params->punTrackedDeviceIndexArray, (uint32_t)params->unTrackedDeviceIndexArrayCount, (vr::TrackedDeviceIndex_t)params->unRelativeToTrackedDeviceIndex);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetTrackedDeviceActivityLevel( struct cppIVRSystem_IVRSystem_020_GetTrackedDeviceActivityLevel_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetTrackedDeviceActivityLevel((vr::TrackedDeviceIndex_t)params->unDeviceId);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_ApplyTransform( struct cppIVRSystem_IVRSystem_020_ApplyTransform_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->ApplyTransform((vr::TrackedDevicePose_t *)params->pOutputPose, (const vr::TrackedDevicePose_t *)params->pTrackedDevicePose, (const vr::HmdMatrix34_t *)params->pTransform);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetTrackedDeviceIndexForControllerRole( struct cppIVRSystem_IVRSystem_020_GetTrackedDeviceIndexForControllerRole_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetTrackedDeviceIndexForControllerRole((vr::ETrackedControllerRole)params->unDeviceType);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetControllerRoleForTrackedDeviceIndex( struct cppIVRSystem_IVRSystem_020_GetControllerRoleForTrackedDeviceIndex_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetControllerRoleForTrackedDeviceIndex((vr::TrackedDeviceIndex_t)params->unDeviceIndex);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetTrackedDeviceClass( struct cppIVRSystem_IVRSystem_020_GetTrackedDeviceClass_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetTrackedDeviceClass((vr::TrackedDeviceIndex_t)params->unDeviceIndex);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_IsTrackedDeviceConnected( struct cppIVRSystem_IVRSystem_020_IsTrackedDeviceConnected_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->IsTrackedDeviceConnected((vr::TrackedDeviceIndex_t)params->unDeviceIndex);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetBoolTrackedDeviceProperty( struct cppIVRSystem_IVRSystem_020_GetBoolTrackedDeviceProperty_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetBoolTrackedDeviceProperty((vr::TrackedDeviceIndex_t)params->unDeviceIndex, (vr::ETrackedDeviceProperty)params->prop, (vr::ETrackedPropertyError *)params->pError);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetFloatTrackedDeviceProperty( struct cppIVRSystem_IVRSystem_020_GetFloatTrackedDeviceProperty_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetFloatTrackedDeviceProperty((vr::TrackedDeviceIndex_t)params->unDeviceIndex, (vr::ETrackedDeviceProperty)params->prop, (vr::ETrackedPropertyError *)params->pError);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetInt32TrackedDeviceProperty( struct cppIVRSystem_IVRSystem_020_GetInt32TrackedDeviceProperty_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetInt32TrackedDeviceProperty((vr::TrackedDeviceIndex_t)params->unDeviceIndex, (vr::ETrackedDeviceProperty)params->prop, (vr::ETrackedPropertyError *)params->pError);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetUint64TrackedDeviceProperty( struct cppIVRSystem_IVRSystem_020_GetUint64TrackedDeviceProperty_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetUint64TrackedDeviceProperty((vr::TrackedDeviceIndex_t)params->unDeviceIndex, (vr::ETrackedDeviceProperty)params->prop, (vr::ETrackedPropertyError *)params->pError);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetMatrix34TrackedDeviceProperty( struct cppIVRSystem_IVRSystem_020_GetMatrix34TrackedDeviceProperty_params *params )
2019-07-13 12:17:57 +02:00
{
*params->_ret = ((IVRSystem*)params->linux_side)->GetMatrix34TrackedDeviceProperty((vr::TrackedDeviceIndex_t)params->unDeviceIndex, (vr::ETrackedDeviceProperty)params->prop, (vr::ETrackedPropertyError *)params->pError);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetArrayTrackedDeviceProperty( struct cppIVRSystem_IVRSystem_020_GetArrayTrackedDeviceProperty_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetArrayTrackedDeviceProperty((vr::TrackedDeviceIndex_t)params->unDeviceIndex, (vr::ETrackedDeviceProperty)params->prop, (vr::PropertyTypeTag_t)params->propType, (void *)params->pBuffer, (uint32_t)params->unBufferSize, (vr::ETrackedPropertyError *)params->pError);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetStringTrackedDeviceProperty( struct cppIVRSystem_IVRSystem_020_GetStringTrackedDeviceProperty_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetStringTrackedDeviceProperty((vr::TrackedDeviceIndex_t)params->unDeviceIndex, (vr::ETrackedDeviceProperty)params->prop, (char *)params->pchValue, (uint32_t)params->unBufferSize, (vr::ETrackedPropertyError *)params->pError);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetPropErrorNameFromEnum( struct cppIVRSystem_IVRSystem_020_GetPropErrorNameFromEnum_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetPropErrorNameFromEnum((vr::ETrackedPropertyError)params->error);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_PollNextEvent( struct cppIVRSystem_IVRSystem_020_PollNextEvent_params *params )
2019-07-13 12:17:57 +02:00
{
VREvent_t lin_pEvent;
if (params->pEvent)
struct_VREvent_t_1715_win_to_lin( params->pEvent, &lin_pEvent );
uint32_t lin_uncbVREvent = params->uncbVREvent ? sizeof(lin_pEvent) : 0;
params->_ret = ((IVRSystem*)params->linux_side)->PollNextEvent(params->pEvent ? &lin_pEvent : nullptr, lin_uncbVREvent);
if (params->pEvent)
struct_VREvent_t_1715_lin_to_win( &lin_pEvent, params->pEvent, params->uncbVREvent );
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_PollNextEventWithPose( struct cppIVRSystem_IVRSystem_020_PollNextEventWithPose_params *params )
2019-07-13 12:17:57 +02:00
{
VREvent_t lin_pEvent;
if (params->pEvent)
struct_VREvent_t_1715_win_to_lin( params->pEvent, &lin_pEvent );
uint32_t lin_uncbVREvent = params->uncbVREvent ? sizeof(lin_pEvent) : 0;
params->_ret = ((IVRSystem*)params->linux_side)->PollNextEventWithPose((vr::ETrackingUniverseOrigin)params->eOrigin, params->pEvent ? &lin_pEvent : nullptr, lin_uncbVREvent, (vr::TrackedDevicePose_t *)params->pTrackedDevicePose);
if (params->pEvent)
struct_VREvent_t_1715_lin_to_win( &lin_pEvent, params->pEvent, params->uncbVREvent );
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetEventTypeNameFromEnum( struct cppIVRSystem_IVRSystem_020_GetEventTypeNameFromEnum_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetEventTypeNameFromEnum((vr::EVREventType)params->eType);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetHiddenAreaMesh( struct cppIVRSystem_IVRSystem_020_GetHiddenAreaMesh_params *params )
2019-07-13 12:17:57 +02:00
{
*params->_ret = ((IVRSystem*)params->linux_side)->GetHiddenAreaMesh((vr::EVREye)params->eEye, (vr::EHiddenAreaMeshType)params->type);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetControllerState( struct cppIVRSystem_IVRSystem_020_GetControllerState_params *params )
2019-07-13 12:17:57 +02:00
{
VRControllerState001_t lin_pControllerState;
if (params->pControllerState)
struct_VRControllerState001_t_1715_win_to_lin( params->pControllerState, &lin_pControllerState );
uint32_t lin_unControllerStateSize = params->unControllerStateSize ? sizeof(lin_pControllerState) : 0;
params->_ret = ((IVRSystem*)params->linux_side)->GetControllerState((vr::TrackedDeviceIndex_t)params->unControllerDeviceIndex, params->pControllerState ? &lin_pControllerState : nullptr, lin_unControllerStateSize);
if (params->pControllerState)
struct_VRControllerState001_t_1715_lin_to_win( &lin_pControllerState, params->pControllerState, params->unControllerStateSize );
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetControllerStateWithPose( struct cppIVRSystem_IVRSystem_020_GetControllerStateWithPose_params *params )
2019-07-13 12:17:57 +02:00
{
VRControllerState001_t lin_pControllerState;
if (params->pControllerState)
struct_VRControllerState001_t_1715_win_to_lin( params->pControllerState, &lin_pControllerState );
uint32_t lin_unControllerStateSize = params->unControllerStateSize ? sizeof(lin_pControllerState) : 0;
params->_ret = ((IVRSystem*)params->linux_side)->GetControllerStateWithPose((vr::ETrackingUniverseOrigin)params->eOrigin, (vr::TrackedDeviceIndex_t)params->unControllerDeviceIndex, params->pControllerState ? &lin_pControllerState : nullptr, lin_unControllerStateSize, (vr::TrackedDevicePose_t *)params->pTrackedDevicePose);
if (params->pControllerState)
struct_VRControllerState001_t_1715_lin_to_win( &lin_pControllerState, params->pControllerState, params->unControllerStateSize );
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_TriggerHapticPulse( struct cppIVRSystem_IVRSystem_020_TriggerHapticPulse_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->TriggerHapticPulse((vr::TrackedDeviceIndex_t)params->unControllerDeviceIndex, (uint32_t)params->unAxisId, (unsigned short)params->usDurationMicroSec);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetButtonIdNameFromEnum( struct cppIVRSystem_IVRSystem_020_GetButtonIdNameFromEnum_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetButtonIdNameFromEnum((vr::EVRButtonId)params->eButtonId);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetControllerAxisTypeNameFromEnum( struct cppIVRSystem_IVRSystem_020_GetControllerAxisTypeNameFromEnum_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetControllerAxisTypeNameFromEnum((vr::EVRControllerAxisType)params->eAxisType);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_IsInputAvailable( struct cppIVRSystem_IVRSystem_020_IsInputAvailable_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->IsInputAvailable();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_IsSteamVRDrawingControllers( struct cppIVRSystem_IVRSystem_020_IsSteamVRDrawingControllers_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->IsSteamVRDrawingControllers();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_ShouldApplicationPause( struct cppIVRSystem_IVRSystem_020_ShouldApplicationPause_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->ShouldApplicationPause();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_ShouldApplicationReduceRenderingWork( struct cppIVRSystem_IVRSystem_020_ShouldApplicationReduceRenderingWork_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->ShouldApplicationReduceRenderingWork();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_PerformFirmwareUpdate( struct cppIVRSystem_IVRSystem_020_PerformFirmwareUpdate_params *params )
2019-07-13 12:17:57 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->PerformFirmwareUpdate((vr::TrackedDeviceIndex_t)params->unDeviceIndex);
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_AcknowledgeQuit_Exiting( struct cppIVRSystem_IVRSystem_020_AcknowledgeQuit_Exiting_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->AcknowledgeQuit_Exiting();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_AcknowledgeQuit_UserPrompt( struct cppIVRSystem_IVRSystem_020_AcknowledgeQuit_UserPrompt_params *params )
2019-07-13 12:17:57 +02:00
{
((IVRSystem*)params->linux_side)->AcknowledgeQuit_UserPrompt();
2019-07-13 12:17:57 +02:00
}
void cppIVRSystem_IVRSystem_020_GetAppContainerFilePaths( struct cppIVRSystem_IVRSystem_020_GetAppContainerFilePaths_params *params )
2019-08-16 16:10:37 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetAppContainerFilePaths((char *)params->pchBuffer, (uint32_t)params->unBufferSize);
2019-08-16 16:10:37 +02:00
}
void cppIVRSystem_IVRSystem_020_GetRuntimeVersion( struct cppIVRSystem_IVRSystem_020_GetRuntimeVersion_params *params )
2019-08-16 16:10:37 +02:00
{
params->_ret = ((IVRSystem*)params->linux_side)->GetRuntimeVersion();
2019-08-16 16:10:37 +02:00
}
2019-07-13 12:17:57 +02:00
#ifdef __cplusplus
}
#endif