Proton/lsteamclient/cppISteamController_SteamController003.cpp

102 lines
5.6 KiB
C++
Raw Normal View History

2018-01-18 19:24:05 +03:00
#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
2018-01-18 19:24:05 +03:00
#include "steamworks_sdk_137/steam_api.h"
#pragma pop_macro("__cdecl")
#include "steamclient_private.h"
2018-01-18 19:24:05 +03:00
#ifdef __cplusplus
extern "C" {
#endif
#define SDKVER_137
#include "struct_converters.h"
#include "cppISteamController_SteamController003.h"
void cppISteamController_SteamController003_Init( struct cppISteamController_SteamController003_Init_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->Init( );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_Shutdown( struct cppISteamController_SteamController003_Shutdown_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->Shutdown( );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_RunFrame( struct cppISteamController_SteamController003_RunFrame_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamController*)params->linux_side)->RunFrame( );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetConnectedControllers( struct cppISteamController_SteamController003_GetConnectedControllers_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetConnectedControllers( (ControllerHandle_t *)params->handlesOut );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_ShowBindingPanel( struct cppISteamController_SteamController003_ShowBindingPanel_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->ShowBindingPanel( (ControllerHandle_t)params->controllerHandle );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetActionSetHandle( struct cppISteamController_SteamController003_GetActionSetHandle_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetActionSetHandle( (const char *)params->pszActionSetName );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_ActivateActionSet( struct cppISteamController_SteamController003_ActivateActionSet_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamController*)params->linux_side)->ActivateActionSet( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t)params->actionSetHandle );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetCurrentActionSet( struct cppISteamController_SteamController003_GetCurrentActionSet_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetCurrentActionSet( (ControllerHandle_t)params->controllerHandle );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetDigitalActionHandle( struct cppISteamController_SteamController003_GetDigitalActionHandle_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetDigitalActionHandle( (const char *)params->pszActionName );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetDigitalActionData( struct cppISteamController_SteamController003_GetDigitalActionData_params *params )
2018-01-18 19:24:05 +03:00
{
*params->_ret = ((ISteamController*)params->linux_side)->GetDigitalActionData( (ControllerHandle_t)params->controllerHandle, (ControllerDigitalActionHandle_t)params->digitalActionHandle );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetDigitalActionOrigins( struct cppISteamController_SteamController003_GetDigitalActionOrigins_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetDigitalActionOrigins( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t)params->actionSetHandle, (ControllerDigitalActionHandle_t)params->digitalActionHandle, (EControllerActionOrigin *)params->originsOut );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetAnalogActionHandle( struct cppISteamController_SteamController003_GetAnalogActionHandle_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetAnalogActionHandle( (const char *)params->pszActionName );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetAnalogActionData( struct cppISteamController_SteamController003_GetAnalogActionData_params *params )
2018-01-18 19:24:05 +03:00
{
*params->_ret = ((ISteamController*)params->linux_side)->GetAnalogActionData( (ControllerHandle_t)params->controllerHandle, (ControllerAnalogActionHandle_t)params->analogActionHandle );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_GetAnalogActionOrigins( struct cppISteamController_SteamController003_GetAnalogActionOrigins_params *params )
2018-01-18 19:24:05 +03:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetAnalogActionOrigins( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t)params->actionSetHandle, (ControllerAnalogActionHandle_t)params->analogActionHandle, (EControllerActionOrigin *)params->originsOut );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_StopAnalogActionMomentum( struct cppISteamController_SteamController003_StopAnalogActionMomentum_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamController*)params->linux_side)->StopAnalogActionMomentum( (ControllerHandle_t)params->controllerHandle, (ControllerAnalogActionHandle_t)params->eAction );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_TriggerHapticPulse( struct cppISteamController_SteamController003_TriggerHapticPulse_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamController*)params->linux_side)->TriggerHapticPulse( (ControllerHandle_t)params->controllerHandle, (ESteamControllerPad)params->eTargetPad, (unsigned short)params->usDurationMicroSec );
2018-01-18 19:24:05 +03:00
}
void cppISteamController_SteamController003_TriggerRepeatedHapticPulse( struct cppISteamController_SteamController003_TriggerRepeatedHapticPulse_params *params )
2018-01-18 19:24:05 +03:00
{
((ISteamController*)params->linux_side)->TriggerRepeatedHapticPulse( (ControllerHandle_t)params->controllerHandle, (ESteamControllerPad)params->eTargetPad, (unsigned short)params->usDurationMicroSec, (unsigned short)params->usOffMicroSec, (unsigned short)params->unRepeat, (unsigned int)params->nFlags );
2018-01-18 19:24:05 +03:00
}
#ifdef __cplusplus
}
#endif