2018-01-18 10:24:05 -06:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 09:00:45 -05:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-05-02 10:43:23 +02:00
|
|
|
#define __cdecl
|
2018-01-18 10:24:05 -06:00
|
|
|
#include "steamworks_sdk_134/steam_api.h"
|
2019-08-16 09:00:45 -05:00
|
|
|
#pragma pop_macro("__cdecl")
|
2018-10-30 14:06:46 -05:00
|
|
|
#include "steamclient_private.h"
|
2018-01-18 10:24:05 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 09:05:29 -06:00
|
|
|
#define SDKVER_134
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.h"
|
2023-09-23 23:44:45 +02:00
|
|
|
|
|
|
|
struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION
|
|
|
|
{
|
|
|
|
#ifdef __cplusplus
|
|
|
|
virtual bool Init( const char * ) = 0;
|
|
|
|
virtual bool Shutdown( ) = 0;
|
|
|
|
virtual void RunFrame( ) = 0;
|
|
|
|
virtual bool GetControllerState( uint32_t, SteamControllerState001_t * ) = 0;
|
|
|
|
virtual void TriggerHapticPulse( uint32_t, uint32_t, uint16_t ) = 0;
|
|
|
|
virtual void SetOverrideMode( const char * ) = 0;
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
};
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init( struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
|
|
|
params->_ret = iface->Init( params->pchAbsolutePathToControllerConfigVDF );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Shutdown( struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Shutdown_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
|
|
|
params->_ret = iface->Shutdown( );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_RunFrame( struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_RunFrame_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
|
|
|
iface->RunFrame( );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_GetControllerState( struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_GetControllerState_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
|
|
|
params->_ret = iface->GetControllerState( params->unControllerIndex, params->pState );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_TriggerHapticPulse( struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_TriggerHapticPulse_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
|
|
|
iface->TriggerHapticPulse( params->unControllerIndex, params->eTargetPad, params->usDurationMicroSec );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
2023-09-27 14:34:23 +02:00
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_SetOverrideMode( struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_SetOverrideMode_params *params )
|
2018-01-18 10:24:05 -06:00
|
|
|
{
|
2023-09-23 23:44:45 +02:00
|
|
|
struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
|
|
|
iface->SetOverrideMode( params->pchMode );
|
2018-01-18 10:24:05 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|