Files
BlitzSteam/Wrapper/SteamController.cpp
T

50 lines
2.4 KiB
C++
Raw Normal View History

2016-01-11 16:56:07 +01:00
// BS_ - Steam wrapper for Blitz.
// Copyright (C) 2015 Xaymar (Michael Fabian Dirks)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
2015-06-06 14:33:52 +02:00
#include "dllmain.h"
2016-01-11 16:56:07 +01:00
DLL_EXPORT uint32_t DLL_CALL BS_Controller_Init(ISteamController* lpSteamController) {
return lpSteamController->Init();
}
2016-01-11 16:56:07 +01:00
#pragma comment(linker, "/EXPORT:BS_Controller_Init=_BS_Controller_Init@4")
2016-01-11 16:56:07 +01:00
DLL_EXPORT uint32_t DLL_CALL BS_Controller_Shutdown(ISteamController* lpSteamController) {
return lpSteamController->Shutdown();
}
2016-01-11 16:56:07 +01:00
#pragma comment(linker, "/EXPORT:BS_Controller_Shutdown=_BS_Controller_Shutdown@4")
2016-01-11 16:56:07 +01:00
DLL_EXPORT void DLL_CALL BS_Controller_RunFrame(ISteamController* lpSteamController) {
lpSteamController->RunFrame();
}
2016-01-11 16:56:07 +01:00
#pragma comment(linker, "/EXPORT:BS_Controller_RunFrame=_BS_Controller_RunFrame@4")
2016-01-11 16:56:07 +01:00
#if 0
DLL_EXPORT uint32_t DLL_CALL BS_Controller_GetControllerState( ISteamController* lpSteamController, uint32_t unControllerIndex, SteamControllerState_t *pState ) {
return lpSteamController->GetControllerState( unControllerIndex, pState );
}
2016-01-11 16:56:07 +01:00
#pragma comment(linker, "/EXPORT:BS_Controller_GetControllerState=_BS_Controller_GetControllerState@12")
2016-01-11 16:56:07 +01:00
DLL_EXPORT void DLL_CALL BS_Controller_TriggerHapticPulse( ISteamController* lpSteamController, uint32_t unControllerIndex, ESteamControllerPad eTargetPad, uint32_t usDurationMicroSec ) {
lpSteamController->TriggerHapticPulse( unControllerIndex, eTargetPad, usDurationMicroSec );
}
2016-01-11 16:56:07 +01:00
#pragma comment(linker, "/EXPORT:BS_Controller_TriggerHapticPulse=_BS_Controller_TriggerHapticPulse@16")
2016-01-11 16:56:07 +01:00
DLL_EXPORT void DLL_CALL BS_Controller_SetOverrideMode( ISteamController* lpSteamController, const char *pchMode ) {
lpSteamController->SetOverrideMode( pchMode );
}
2016-01-11 16:56:07 +01:00
#pragma comment(linker, "/EXPORT:BS_Controller_SetOverrideMode=_BS_Controller_SetOverrideMode@8")
#endif // 0