Yucom/lsteamclient/cppISteamController_SteamController007.cpp

178 lines
10 KiB
C++
Raw Normal View History

2019-02-25 16:44:23 +01:00
#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
2020-09-29 16:19:06 +02:00
#include "steamworks_sdk_150/steam_api.h"
#include "steamworks_sdk_150/steamnetworkingtypes.h"
#pragma pop_macro("__cdecl")
2019-02-25 16:44:23 +01:00
#include "steamclient_private.h"
#ifdef __cplusplus
extern "C" {
#endif
2020-09-29 16:19:06 +02:00
#define SDKVER_150
#include "struct_converters.h"
#include "cppISteamController_SteamController007.h"
void cppISteamController_SteamController007_Init( struct cppISteamController_SteamController007_Init_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->Init( );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_Shutdown( struct cppISteamController_SteamController007_Shutdown_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->Shutdown( );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_RunFrame( struct cppISteamController_SteamController007_RunFrame_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->RunFrame( );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetConnectedControllers( struct cppISteamController_SteamController007_GetConnectedControllers_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetConnectedControllers( (ControllerHandle_t *)params->handlesOut );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetActionSetHandle( struct cppISteamController_SteamController007_GetActionSetHandle_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetActionSetHandle( (const char *)params->pszActionSetName );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_ActivateActionSet( struct cppISteamController_SteamController007_ActivateActionSet_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->ActivateActionSet( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t)params->actionSetHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetCurrentActionSet( struct cppISteamController_SteamController007_GetCurrentActionSet_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetCurrentActionSet( (ControllerHandle_t)params->controllerHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_ActivateActionSetLayer( struct cppISteamController_SteamController007_ActivateActionSetLayer_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->ActivateActionSetLayer( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t)params->actionSetLayerHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_DeactivateActionSetLayer( struct cppISteamController_SteamController007_DeactivateActionSetLayer_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->DeactivateActionSetLayer( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t)params->actionSetLayerHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_DeactivateAllActionSetLayers( struct cppISteamController_SteamController007_DeactivateAllActionSetLayers_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->DeactivateAllActionSetLayers( (ControllerHandle_t)params->controllerHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetActiveActionSetLayers( struct cppISteamController_SteamController007_GetActiveActionSetLayers_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetActiveActionSetLayers( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t *)params->handlesOut );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetDigitalActionHandle( struct cppISteamController_SteamController007_GetDigitalActionHandle_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetDigitalActionHandle( (const char *)params->pszActionName );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetDigitalActionData( struct cppISteamController_SteamController007_GetDigitalActionData_params *params )
2019-02-25 16:44:23 +01:00
{
*params->_ret = ((ISteamController*)params->linux_side)->GetDigitalActionData( (ControllerHandle_t)params->controllerHandle, (ControllerDigitalActionHandle_t)params->digitalActionHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetDigitalActionOrigins( struct cppISteamController_SteamController007_GetDigitalActionOrigins_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetDigitalActionOrigins( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t)params->actionSetHandle, (ControllerDigitalActionHandle_t)params->digitalActionHandle, (EControllerActionOrigin *)params->originsOut );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetAnalogActionHandle( struct cppISteamController_SteamController007_GetAnalogActionHandle_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetAnalogActionHandle( (const char *)params->pszActionName );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetAnalogActionData( struct cppISteamController_SteamController007_GetAnalogActionData_params *params )
2019-02-25 16:44:23 +01:00
{
*params->_ret = ((ISteamController*)params->linux_side)->GetAnalogActionData( (ControllerHandle_t)params->controllerHandle, (ControllerAnalogActionHandle_t)params->analogActionHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetAnalogActionOrigins( struct cppISteamController_SteamController007_GetAnalogActionOrigins_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetAnalogActionOrigins( (ControllerHandle_t)params->controllerHandle, (ControllerActionSetHandle_t)params->actionSetHandle, (ControllerAnalogActionHandle_t)params->analogActionHandle, (EControllerActionOrigin *)params->originsOut );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetStringForActionOrigin( struct cppISteamController_SteamController007_GetStringForActionOrigin_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetStringForActionOrigin( (EControllerActionOrigin)params->eOrigin );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_StopAnalogActionMomentum( struct cppISteamController_SteamController007_StopAnalogActionMomentum_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->StopAnalogActionMomentum( (ControllerHandle_t)params->controllerHandle, (ControllerAnalogActionHandle_t)params->eAction );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetMotionData( struct cppISteamController_SteamController007_GetMotionData_params *params )
2019-02-25 16:44:23 +01:00
{
*params->_ret = ((ISteamController*)params->linux_side)->GetMotionData( (ControllerHandle_t)params->controllerHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_TriggerHapticPulse( struct cppISteamController_SteamController007_TriggerHapticPulse_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->TriggerHapticPulse( (ControllerHandle_t)params->controllerHandle, (ESteamControllerPad)params->eTargetPad, (unsigned short)params->usDurationMicroSec );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_TriggerRepeatedHapticPulse( struct cppISteamController_SteamController007_TriggerRepeatedHapticPulse_params *params )
2019-02-25 16:44:23 +01: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 );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_TriggerVibration( struct cppISteamController_SteamController007_TriggerVibration_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->TriggerVibration( (ControllerHandle_t)params->controllerHandle, (unsigned short)params->usLeftSpeed, (unsigned short)params->usRightSpeed );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_SetLEDColor( struct cppISteamController_SteamController007_SetLEDColor_params *params )
2019-02-25 16:44:23 +01:00
{
((ISteamController*)params->linux_side)->SetLEDColor( (ControllerHandle_t)params->controllerHandle, (uint8)params->nColorR, (uint8)params->nColorG, (uint8)params->nColorB, (unsigned int)params->nFlags );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_ShowBindingPanel( struct cppISteamController_SteamController007_ShowBindingPanel_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->ShowBindingPanel( (ControllerHandle_t)params->controllerHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetInputTypeForHandle( struct cppISteamController_SteamController007_GetInputTypeForHandle_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetInputTypeForHandle( (ControllerHandle_t)params->controllerHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetControllerForGamepadIndex( struct cppISteamController_SteamController007_GetControllerForGamepadIndex_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetControllerForGamepadIndex( (int)params->nIndex );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetGamepadIndexForController( struct cppISteamController_SteamController007_GetGamepadIndexForController_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetGamepadIndexForController( (ControllerHandle_t)params->ulControllerHandle );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetStringForXboxOrigin( struct cppISteamController_SteamController007_GetStringForXboxOrigin_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetStringForXboxOrigin( (EXboxOrigin)params->eOrigin );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetActionOriginFromXboxOrigin( struct cppISteamController_SteamController007_GetActionOriginFromXboxOrigin_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetActionOriginFromXboxOrigin( (ControllerHandle_t)params->controllerHandle, (EXboxOrigin)params->eOrigin );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_TranslateActionOrigin( struct cppISteamController_SteamController007_TranslateActionOrigin_params *params )
2019-02-25 16:44:23 +01:00
{
params->_ret = ((ISteamController*)params->linux_side)->TranslateActionOrigin( (ESteamInputType)params->eDestinationInputType, (EControllerActionOrigin)params->eSourceOrigin );
2019-02-25 16:44:23 +01:00
}
void cppISteamController_SteamController007_GetControllerBindingRevision( struct cppISteamController_SteamController007_GetControllerBindingRevision_params *params )
2019-08-16 14:44:08 +02:00
{
params->_ret = ((ISteamController*)params->linux_side)->GetControllerBindingRevision( (ControllerHandle_t)params->controllerHandle, (int *)params->pMajor, (int *)params->pMinor );
2019-08-16 14:44:08 +02:00
}
2019-02-25 16:44:23 +01:00
#ifdef __cplusplus
}
#endif