// This file is automatically generated. using System; using System.Text; using System.Runtime.InteropServices; namespace Steam4NET { [StructLayout(LayoutKind.Sequential,Pack=4)] public class ISteamController001VTable { public IntPtr Init0; public IntPtr Shutdown1; public IntPtr RunFrame2; public IntPtr GetControllerState3; public IntPtr TriggerHapticPulse4; public IntPtr SetOverrideMode5; private IntPtr DTorISteamController0016; }; [InteropHelp.InterfaceVersion("STEAMCONTROLLER_INTERFACE_VERSION")] public class ISteamController001 : InteropHelp.NativeWrapper { [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeInitS( IntPtr thisptr, string pchAbsolutePathToControllerConfigVDF ); public bool Init( string pchAbsolutePathToControllerConfigVDF ) { return this.GetFunction( this.Functions.Init0 )( this.ObjectAddress, pchAbsolutePathToControllerConfigVDF ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeShutdown( IntPtr thisptr ); public bool Shutdown( ) { return this.GetFunction( this.Functions.Shutdown1 )( this.ObjectAddress ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeRunFrame( IntPtr thisptr ); public void RunFrame( ) { this.GetFunction( this.Functions.RunFrame2 )( this.ObjectAddress ); } [return: MarshalAs(UnmanagedType.I1)] [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeGetControllerStateUS( IntPtr thisptr, UInt32 unControllerIndex, ref SteamControllerState_t pState ); public bool GetControllerState( UInt32 unControllerIndex, ref SteamControllerState_t pState ) { return this.GetFunction( this.Functions.GetControllerState3 )( this.ObjectAddress, unControllerIndex, ref pState ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeTriggerHapticPulseUEU( IntPtr thisptr, UInt32 unControllerIndex, ESteamControllerPad eTargetPad, UInt16 usDurationMicroSec ); public void TriggerHapticPulse( UInt32 unControllerIndex, ESteamControllerPad eTargetPad, UInt16 usDurationMicroSec ) { this.GetFunction( this.Functions.TriggerHapticPulse4 )( this.ObjectAddress, unControllerIndex, eTargetPad, usDurationMicroSec ); } [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeSetOverrideModeS( IntPtr thisptr, string pchMode ); public void SetOverrideMode( string pchMode ) { this.GetFunction( this.Functions.SetOverrideMode5 )( this.ObjectAddress, pchMode ); } }; }