ISteamInput.GetConnectedControllers is an array

This commit is contained in:
Garry Newman 2019-06-19 13:05:09 +01:00
parent 77f3e09e98
commit 1ac22e1407
2 changed files with 7 additions and 6 deletions

View File

@ -129,13 +129,13 @@ namespace Steamworks
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
private delegate int FGetConnectedControllers( IntPtr self, ref InputHandle_t handlesOut );
private delegate int FGetConnectedControllers( IntPtr self, [In,Out] InputHandle_t[] handlesOut );
private FGetConnectedControllers _GetConnectedControllers;
#endregion
internal int GetConnectedControllers( ref InputHandle_t handlesOut )
internal int GetConnectedControllers( [In,Out] InputHandle_t[] handlesOut )
{
return _GetConnectedControllers( Self, ref handlesOut );
return _GetConnectedControllers( Self, handlesOut );
}
#region FunctionMeta
@ -206,13 +206,13 @@ namespace Steamworks
#region FunctionMeta
[UnmanagedFunctionPointer( CallingConvention.ThisCall )]
private delegate int FGetActiveActionSetLayers( IntPtr self, InputHandle_t inputHandle, ref InputActionSetHandle_t handlesOut );
private delegate int FGetActiveActionSetLayers( IntPtr self, InputHandle_t inputHandle, [In,Out] InputActionSetHandle_t[] handlesOut );
private FGetActiveActionSetLayers _GetActiveActionSetLayers;
#endregion
internal int GetActiveActionSetLayers( InputHandle_t inputHandle, ref InputActionSetHandle_t handlesOut )
internal int GetActiveActionSetLayers( InputHandle_t inputHandle, [In,Out] InputActionSetHandle_t[] handlesOut )
{
return _GetActiveActionSetLayers( Self, inputHandle, ref handlesOut );
return _GetActiveActionSetLayers( Self, inputHandle, handlesOut );
}
#region FunctionMeta

View File

@ -91,6 +91,7 @@ internal class BaseType
if ( VarName == "pBasePrices" ) return true;
if ( VarName == "pCurrentPrices" ) return true;
if ( VarName == "pItemDefIDs" ) return true;
if ( VarName == "handlesOut" ) return true;
if ( VarName == "pDetails" && Func == "GetDownloadedLeaderboardEntry" ) return true;
if ( VarName == "pData" && NativeType.EndsWith( "*" ) && Func.StartsWith( "GetGlobalStatHistory" ) ) return true;
if ( NativeType.EndsWith( "**" ) ) return true;