From a755a4a256fd15d70e1a2a20c9c3a56e69ba36d1 Mon Sep 17 00:00:00 2001 From: Keith Bradner Date: Thu, 21 Mar 2024 10:47:42 -0700 Subject: [PATCH] Fixing 2.2.3 sdk header bug --- CommonHeaders/OpenVR/openvr_api.cs | 4 ++-- com.valve.openvr/Runtime/openvr_api.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CommonHeaders/OpenVR/openvr_api.cs b/CommonHeaders/OpenVR/openvr_api.cs index e8d1291..dbf3f75 100644 --- a/CommonHeaders/OpenVR/openvr_api.cs +++ b/CommonHeaders/OpenVR/openvr_api.cs @@ -4271,10 +4271,10 @@ public EVRInputError GetOriginTrackedDeviceInfo(ulong origin,ref InputOriginInfo EVRInputError result = FnTable.GetOriginTrackedDeviceInfo(origin,ref pOriginInfo,unOriginInfoSize); return result; } - public EVRInputError GetActionBindingInfo(ulong action,ref InputBindingInfo_t pOriginInfo,uint unBindingInfoSize,uint unBindingInfoCount,ref uint punReturnedBindingInfoCount) + public EVRInputError GetActionBindingInfo(ulong action,InputBindingInfo_t [] pOriginInfo,uint unBindingInfoSize,ref uint punReturnedBindingInfoCount) { punReturnedBindingInfoCount = 0; - EVRInputError result = FnTable.GetActionBindingInfo(action,ref pOriginInfo,unBindingInfoSize,unBindingInfoCount,ref punReturnedBindingInfoCount); + EVRInputError result = FnTable.GetActionBindingInfo(action,pOriginInfo,unBindingInfoSize,(uint) pOriginInfo.Length,ref punReturnedBindingInfoCount); return result; } public EVRInputError ShowActionOrigins(ulong actionSetHandle,ulong ulActionHandle) diff --git a/com.valve.openvr/Runtime/openvr_api.cs b/com.valve.openvr/Runtime/openvr_api.cs index e8d1291..dbf3f75 100644 --- a/com.valve.openvr/Runtime/openvr_api.cs +++ b/com.valve.openvr/Runtime/openvr_api.cs @@ -4271,10 +4271,10 @@ public EVRInputError GetOriginTrackedDeviceInfo(ulong origin,ref InputOriginInfo EVRInputError result = FnTable.GetOriginTrackedDeviceInfo(origin,ref pOriginInfo,unOriginInfoSize); return result; } - public EVRInputError GetActionBindingInfo(ulong action,ref InputBindingInfo_t pOriginInfo,uint unBindingInfoSize,uint unBindingInfoCount,ref uint punReturnedBindingInfoCount) + public EVRInputError GetActionBindingInfo(ulong action,InputBindingInfo_t [] pOriginInfo,uint unBindingInfoSize,ref uint punReturnedBindingInfoCount) { punReturnedBindingInfoCount = 0; - EVRInputError result = FnTable.GetActionBindingInfo(action,ref pOriginInfo,unBindingInfoSize,unBindingInfoCount,ref punReturnedBindingInfoCount); + EVRInputError result = FnTable.GetActionBindingInfo(action,pOriginInfo,unBindingInfoSize,(uint) pOriginInfo.Length,ref punReturnedBindingInfoCount); return result; } public EVRInputError ShowActionOrigins(ulong actionSetHandle,ulong ulActionHandle)