55 lines
2.5 KiB
C++
55 lines
2.5 KiB
C++
// BlitzSteam - 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/>.
|
|
|
|
#include "BlitzSteam.h"
|
|
|
|
DLL_FUNCTION(ISteamController*) BS_Controller() {
|
|
return SteamController();
|
|
}
|
|
#pragma comment(linker, "/EXPORT:BS_Controller=_BS_Controller@0")
|
|
|
|
DLL_FUNCTION(uint32_t) BS_Controller_Init(ISteamController* lpSteamController) {
|
|
return lpSteamController->Init();
|
|
}
|
|
#pragma comment(linker, "/EXPORT:BS_Controller_Init=_BS_Controller_Init@4")
|
|
|
|
DLL_FUNCTION(uint32_t) BS_Controller_Shutdown(ISteamController* lpSteamController) {
|
|
return lpSteamController->Shutdown();
|
|
}
|
|
#pragma comment(linker, "/EXPORT:BS_Controller_Shutdown=_BS_Controller_Shutdown@4")
|
|
|
|
DLL_FUNCTION(void) BS_Controller_RunFrame(ISteamController* lpSteamController) {
|
|
lpSteamController->RunFrame();
|
|
}
|
|
#pragma comment(linker, "/EXPORT:BS_Controller_RunFrame=_BS_Controller_RunFrame@4")
|
|
|
|
#if 0
|
|
DLL_FUNCTION(uint32_t) BS_Controller_GetControllerState( ISteamController* lpSteamController, uint32_t unControllerIndex, SteamControllerState_t *pState ) {
|
|
return lpSteamController->GetControllerState( unControllerIndex, pState );
|
|
}
|
|
#pragma comment(linker, "/EXPORT:BS_Controller_GetControllerState=_BS_Controller_GetControllerState@12")
|
|
|
|
DLL_FUNCTION(void) BS_Controller_TriggerHapticPulse( ISteamController* lpSteamController, uint32_t unControllerIndex, ESteamControllerPad eTargetPad, uint32_t usDurationMicroSec ) {
|
|
lpSteamController->TriggerHapticPulse( unControllerIndex, eTargetPad, usDurationMicroSec );
|
|
}
|
|
#pragma comment(linker, "/EXPORT:BS_Controller_TriggerHapticPulse=_BS_Controller_TriggerHapticPulse@16")
|
|
|
|
DLL_FUNCTION(void) BS_Controller_SetOverrideMode( ISteamController* lpSteamController, const char *pchMode ) {
|
|
lpSteamController->SetOverrideMode( pchMode );
|
|
}
|
|
#pragma comment(linker, "/EXPORT:BS_Controller_SetOverrideMode=_BS_Controller_SetOverrideMode@8")
|
|
#endif // 0
|