Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8123 → Rev 8124

/source/voidwrap/include/voidwrap_steam.h
29,10 → 29,6
#endif
#endif
 
#ifdef VWCONTROLLER
VOIDWRAP_API int32_t Voidwrap_Steam_GetConnectedControllers(void);
#endif
 
#ifdef __cplusplus
}
#endif
59,10 → 55,6
#endif
#endif
 
#ifdef VWCONTROLLER
static VW_INT32 Voidwrap_Steam_GetConnectedControllers;
#endif
 
#endif
 
#endif
/source/voidwrap/src/voidwrap_steam.cpp
218,19 → 218,6
#endif
 
 
#ifdef VWCONTROLLER
static int32_t NumControllerHandles;
static ControllerHandle_t * ControllerHandles;
 
VOIDWRAP_API int32_t Voidwrap_Steam_GetConnectedControllers()
{
SteamController()->RunFrame(); // poll for any queued controller events
NumControllerHandles = SteamController()->GetConnectedControllers(ControllerHandles);
return NumControllerHandles;
}
#endif
 
 
VOIDWRAP_API bool Voidwrap_Steam_Init()
{
if (!SteamAPI_Init())
256,11 → 243,6
ScreenHandler = new SteamScreenshotHandler();
#endif
 
#ifdef VWCONTROLLER
if (SteamController()->Init()) { PrintDebug("Controller API init succeeded."); }
ControllerHandles = new ControllerHandle_t[STEAM_CONTROLLER_MAX_COUNT];
#endif
 
SteamAPI_RunCallbacks();
 
return true;