mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-30 16:45:36 +03:00
231 lines
12 KiB
C
231 lines
12 KiB
C
|
/* This file is auto-generated, do not edit. */
|
||
|
#include <stdarg.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#include "windef.h"
|
||
|
#include "winbase.h"
|
||
|
#include "wine/debug.h"
|
||
|
|
||
|
#include "cxx.h"
|
||
|
|
||
|
#include "vrclient_defs.h"
|
||
|
|
||
|
#include "vrclient_private.h"
|
||
|
|
||
|
#include "struct_converters.h"
|
||
|
|
||
|
#include "flatapi.h"
|
||
|
|
||
|
WINE_DEFAULT_DEBUG_CHANNEL(vrclient);
|
||
|
|
||
|
#include "cppIVRInput_IVRInput_003.h"
|
||
|
|
||
|
typedef struct __winIVRInput_IVRInput_003 {
|
||
|
vtable_ptr *vtable;
|
||
|
void *linux_side;
|
||
|
} winIVRInput_IVRInput_003;
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_SetActionManifestPath, 12)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_SetActionManifestPath(winIVRInput_IVRInput_003 *_this, const char * pchActionManifestPath)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_SetActionManifestPath(_this->linux_side, pchActionManifestPath);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetActionSetHandle, 20)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetActionSetHandle(winIVRInput_IVRInput_003 *_this, const char * pchActionSetName, VRActionSetHandle_t * pHandle)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetActionSetHandle(_this->linux_side, pchActionSetName, pHandle);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetActionHandle, 20)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetActionHandle(winIVRInput_IVRInput_003 *_this, const char * pchActionName, VRActionHandle_t * pHandle)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetActionHandle(_this->linux_side, pchActionName, pHandle);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetInputSourceHandle, 20)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetInputSourceHandle(winIVRInput_IVRInput_003 *_this, const char * pchInputSourcePath, VRInputValueHandle_t * pHandle)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetInputSourceHandle(_this->linux_side, pchInputSourcePath, pHandle);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_UpdateActionState, 20)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_UpdateActionState(winIVRInput_IVRInput_003 *_this, VRActiveActionSet_t * pSets, uint32_t unSizeOfVRSelectedActionSet_t, uint32_t unSetCount)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_UpdateActionState(_this->linux_side, pSets, unSizeOfVRSelectedActionSet_t, unSetCount);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetDigitalActionData, 24)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetDigitalActionData(winIVRInput_IVRInput_003 *_this, VRActionHandle_t action, InputDigitalActionData_t * pActionData, uint32_t unActionDataSize)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetDigitalActionData(_this->linux_side, action, pActionData, unActionDataSize);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetAnalogActionData, 24)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetAnalogActionData(winIVRInput_IVRInput_003 *_this, VRActionHandle_t action, InputAnalogActionData_t * pActionData, uint32_t unActionDataSize)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetAnalogActionData(_this->linux_side, action, pActionData, unActionDataSize);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetPoseActionData, 32)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetPoseActionData(winIVRInput_IVRInput_003 *_this, VRActionHandle_t action, ETrackingUniverseOrigin eOrigin, float fPredictedSecondsFromNow, InputPoseActionData_t * pActionData, uint32_t unActionDataSize)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetPoseActionData(_this->linux_side, action, eOrigin, fPredictedSecondsFromNow, pActionData, unActionDataSize);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetSkeletalActionData, 44)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetSkeletalActionData(winIVRInput_IVRInput_003 *_this, VRActionHandle_t action, EVRSkeletalTransformSpace eBoneParent, float fPredictedSecondsFromNow, InputSkeletonActionData_t * pActionData, uint32_t unActionDataSize, VRBoneTransform_t * pTransformArray, uint32_t unTransformArrayCount)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetSkeletalActionData(_this->linux_side, action, eBoneParent, fPredictedSecondsFromNow, pActionData, unActionDataSize, pTransformArray, unTransformArrayCount);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetSkeletalActionDataCompressed, 40)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetSkeletalActionDataCompressed(winIVRInput_IVRInput_003 *_this, VRActionHandle_t action, EVRSkeletalTransformSpace eBoneParent, float fPredictedSecondsFromNow, void * pvCompressedData, uint32_t unCompressedSize, uint32_t * punRequiredCompressedSize)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetSkeletalActionDataCompressed(_this->linux_side, action, eBoneParent, fPredictedSecondsFromNow, pvCompressedData, unCompressedSize, punRequiredCompressedSize);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_UncompressSkeletalActionData, 36)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_UncompressSkeletalActionData(winIVRInput_IVRInput_003 *_this, void * pvCompressedBuffer, uint32_t unCompressedBufferSize, EVRSkeletalTransformSpace * peBoneParent, VRBoneTransform_t * pTransformArray, uint32_t unTransformArrayCount)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_UncompressSkeletalActionData(_this->linux_side, pvCompressedBuffer, unCompressedBufferSize, peBoneParent, pTransformArray, unTransformArrayCount);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_TriggerHapticVibrationAction, 28)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_TriggerHapticVibrationAction(winIVRInput_IVRInput_003 *_this, VRActionHandle_t action, float fStartSecondsFromNow, float fDurationSeconds, float fFrequency, float fAmplitude)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_TriggerHapticVibrationAction(_this->linux_side, action, fStartSecondsFromNow, fDurationSeconds, fFrequency, fAmplitude);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetActionOrigins, 32)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetActionOrigins(winIVRInput_IVRInput_003 *_this, VRActionSetHandle_t actionSetHandle, VRActionHandle_t digitalActionHandle, VRInputValueHandle_t * originsOut, uint32_t originOutCount)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetActionOrigins(_this->linux_side, actionSetHandle, digitalActionHandle, originsOut, originOutCount);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetOriginLocalizedName, 24)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetOriginLocalizedName(winIVRInput_IVRInput_003 *_this, VRInputValueHandle_t origin, char * pchNameArray, uint32_t unNameArraySize)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetOriginLocalizedName(_this->linux_side, origin, pchNameArray, unNameArraySize);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_GetOriginTrackedDeviceInfo, 24)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_GetOriginTrackedDeviceInfo(winIVRInput_IVRInput_003 *_this, VRInputValueHandle_t origin, InputOriginInfo_t * pOriginInfo, uint32_t unOriginInfoSize)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_GetOriginTrackedDeviceInfo(_this->linux_side, origin, pOriginInfo, unOriginInfoSize);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_ShowActionOrigins, 20)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_ShowActionOrigins(winIVRInput_IVRInput_003 *_this, VRActionSetHandle_t actionSetHandle, VRActionHandle_t ulActionHandle)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_ShowActionOrigins(_this->linux_side, actionSetHandle, ulActionHandle);
|
||
|
}
|
||
|
|
||
|
DEFINE_THISCALL_WRAPPER(winIVRInput_IVRInput_003_ShowBindingsForActionSet, 28)
|
||
|
EVRInputError __thiscall winIVRInput_IVRInput_003_ShowBindingsForActionSet(winIVRInput_IVRInput_003 *_this, VRActiveActionSet_t * pSets, uint32_t unSizeOfVRSelectedActionSet_t, uint32_t unSetCount, VRInputValueHandle_t originToHighlight)
|
||
|
{
|
||
|
TRACE("%p\n", _this);
|
||
|
return cppIVRInput_IVRInput_003_ShowBindingsForActionSet(_this->linux_side, pSets, unSizeOfVRSelectedActionSet_t, unSetCount, originToHighlight);
|
||
|
}
|
||
|
|
||
|
extern vtable_ptr winIVRInput_IVRInput_003_vtable;
|
||
|
|
||
|
#ifndef __GNUC__
|
||
|
void __asm_dummy_vtables(void) {
|
||
|
#endif
|
||
|
__ASM_VTABLE(winIVRInput_IVRInput_003,
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_SetActionManifestPath)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetActionSetHandle)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetActionHandle)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetInputSourceHandle)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_UpdateActionState)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetDigitalActionData)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetAnalogActionData)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetPoseActionData)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetSkeletalActionData)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetSkeletalActionDataCompressed)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_UncompressSkeletalActionData)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_TriggerHapticVibrationAction)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetActionOrigins)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetOriginLocalizedName)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_GetOriginTrackedDeviceInfo)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_ShowActionOrigins)
|
||
|
VTABLE_ADD_FUNC(winIVRInput_IVRInput_003_ShowBindingsForActionSet)
|
||
|
);
|
||
|
#ifndef __GNUC__
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
winIVRInput_IVRInput_003 *create_winIVRInput_IVRInput_003(void *linux_side)
|
||
|
{
|
||
|
winIVRInput_IVRInput_003 *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(winIVRInput_IVRInput_003));
|
||
|
TRACE("-> %p\n", r);
|
||
|
r->vtable = &winIVRInput_IVRInput_003_vtable;
|
||
|
r->linux_side = linux_side;
|
||
|
return r;
|
||
|
}
|
||
|
|
||
|
void destroy_winIVRInput_IVRInput_003(void *object)
|
||
|
{
|
||
|
TRACE("%p\n", object);
|
||
|
HeapFree(GetProcessHeap(), 0, object);
|
||
|
}
|
||
|
|
||
|
winIVRInput_IVRInput_003 *create_winIVRInput_IVRInput_003_FnTable(void *linux_side)
|
||
|
{
|
||
|
winIVRInput_IVRInput_003 *r = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(winIVRInput_IVRInput_003));
|
||
|
struct thunk *thunks = alloc_thunks(17);
|
||
|
struct thunk **vtable = HeapAlloc(GetProcessHeap(), 0, 17 * sizeof(*vtable));
|
||
|
int i;
|
||
|
|
||
|
TRACE("-> %p, vtable %p, thunks %p\n", r, vtable, thunks);
|
||
|
init_thunk(&thunks[0], r, winIVRInput_IVRInput_003_SetActionManifestPath);
|
||
|
init_thunk(&thunks[1], r, winIVRInput_IVRInput_003_GetActionSetHandle);
|
||
|
init_thunk(&thunks[2], r, winIVRInput_IVRInput_003_GetActionHandle);
|
||
|
init_thunk(&thunks[3], r, winIVRInput_IVRInput_003_GetInputSourceHandle);
|
||
|
init_thunk(&thunks[4], r, winIVRInput_IVRInput_003_UpdateActionState);
|
||
|
init_thunk(&thunks[5], r, winIVRInput_IVRInput_003_GetDigitalActionData);
|
||
|
init_thunk(&thunks[6], r, winIVRInput_IVRInput_003_GetAnalogActionData);
|
||
|
init_thunk(&thunks[7], r, winIVRInput_IVRInput_003_GetPoseActionData);
|
||
|
init_thunk(&thunks[8], r, winIVRInput_IVRInput_003_GetSkeletalActionData);
|
||
|
init_thunk(&thunks[9], r, winIVRInput_IVRInput_003_GetSkeletalActionDataCompressed);
|
||
|
init_thunk(&thunks[10], r, winIVRInput_IVRInput_003_UncompressSkeletalActionData);
|
||
|
init_thunk(&thunks[11], r, winIVRInput_IVRInput_003_TriggerHapticVibrationAction);
|
||
|
init_thunk(&thunks[12], r, winIVRInput_IVRInput_003_GetActionOrigins);
|
||
|
init_thunk(&thunks[13], r, winIVRInput_IVRInput_003_GetOriginLocalizedName);
|
||
|
init_thunk(&thunks[14], r, winIVRInput_IVRInput_003_GetOriginTrackedDeviceInfo);
|
||
|
init_thunk(&thunks[15], r, winIVRInput_IVRInput_003_ShowActionOrigins);
|
||
|
init_thunk(&thunks[16], r, winIVRInput_IVRInput_003_ShowBindingsForActionSet);
|
||
|
for (i = 0; i < 17; i++)
|
||
|
vtable[i] = &thunks[i];
|
||
|
r->linux_side = linux_side;
|
||
|
r->vtable = (void *)vtable;
|
||
|
return r;
|
||
|
}
|
||
|
|
||
|
void destroy_winIVRInput_IVRInput_003_FnTable(void *object)
|
||
|
{
|
||
|
winIVRInput_IVRInput_003 *win_object = object;
|
||
|
TRACE("%p\n", win_object);
|
||
|
VirtualFree(win_object->vtable[0], 0, MEM_RELEASE);
|
||
|
HeapFree(GetProcessHeap(), 0, win_object->vtable);
|
||
|
HeapFree(GetProcessHeap(), 0, win_object);
|
||
|
}
|
||
|
|