Allow testing a specific controller

This commit is contained in:
Sam Lantinga 2020-11-23 14:28:30 -08:00
parent ff4bc1389c
commit 04b45b5581
1 changed files with 4 additions and 0 deletions

View File

@ -448,6 +448,10 @@ main(int argc, char *argv[])
/* !!! FIXME: */ /* !!! FIXME: */
/*SDL_RenderSetLogicalSize(screen, background->w, background->h);*/ /*SDL_RenderSetLogicalSize(screen, background->w, background->h);*/
if (argv[1] && *argv[1] != '-') {
gamecontroller = SDL_GameControllerOpen(SDL_atoi(argv[1]));
}
UpdateWindowTitle(); UpdateWindowTitle();
/* Loop, getting controller events! */ /* Loop, getting controller events! */