Added comment about SDL and SDL_INIT_GAMECONTROLLER. (#2809)

This commit is contained in:
omar
2019-10-02 11:38:30 +02:00
parent 893056a209
commit a2f3dcfc97
4 changed files with 9 additions and 2 deletions

View File

@ -26,6 +26,8 @@ void CleanupRenderTarget();
int main(int, char**)
{
// Setup SDL
// (Some versions of SDL before <2.0.10 appears to have performance/stalling issues on a minority of Windows systems,
// depending on whether SDL_INIT_GAMECONTROLLER is enabled or disabled.. updating to latest version of SDL is recommended!)
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0)
{
printf("Error: %s\n", SDL_GetError());