2018-01-18 17:24:05 +01:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 16:00:45 +02:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-05-02 10:43:23 +02:00
|
|
|
#define __cdecl
|
2018-01-18 17:24:05 +01:00
|
|
|
#include "steamworks_sdk_134/steam_api.h"
|
2019-08-16 16:00:45 +02:00
|
|
|
#pragma pop_macro("__cdecl")
|
2018-10-30 20:06:46 +01:00
|
|
|
#include "steamclient_private.h"
|
2018-01-18 17:24:05 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 16:05:29 +01:00
|
|
|
#define SDKVER_134
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.h"
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init(void *linux_side, const char *pchAbsolutePathToControllerConfigVDF)
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamController*)linux_side)->Init((const char *)pchAbsolutePathToControllerConfigVDF);
|
|
|
|
return (_ret);
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Shutdown(void *linux_side)
|
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamController*)linux_side)->Shutdown();
|
|
|
|
return (_ret);
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_RunFrame(void *linux_side)
|
|
|
|
{
|
|
|
|
((ISteamController*)linux_side)->RunFrame();
|
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
bool cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_GetControllerState(void *linux_side, uint32 unControllerIndex, SteamControllerState001_t *pState)
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
2023-09-23 21:44:20 +02:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((ISteamController*)linux_side)->GetControllerState((uint32)unControllerIndex, (SteamControllerState001_t *)pState);
|
|
|
|
return (_ret);
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_TriggerHapticPulse(void *linux_side, uint32 unControllerIndex, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec)
|
|
|
|
{
|
|
|
|
((ISteamController*)linux_side)->TriggerHapticPulse((uint32)unControllerIndex, (ESteamControllerPad)eTargetPad, (unsigned short)usDurationMicroSec);
|
|
|
|
}
|
|
|
|
|
2023-09-23 16:11:42 +02:00
|
|
|
void cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_SetOverrideMode(void *linux_side, const char *pchMode)
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
|
|
|
((ISteamController*)linux_side)->SetOverrideMode((const char *)pchMode);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|