Skip to content

Commit

Permalink
Allow testing a specific controller
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 23, 2020
1 parent ff4bc13 commit 04b45b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testgamecontroller.c
Expand Up @@ -448,6 +448,10 @@ main(int argc, char *argv[])
/* !!! FIXME: */
/*SDL_RenderSetLogicalSize(screen, background->w, background->h);*/

if (argv[1] && *argv[1] != '-') {
gamecontroller = SDL_GameControllerOpen(SDL_atoi(argv[1]));
}

UpdateWindowTitle();

/* Loop, getting controller events! */
Expand Down

0 comments on commit 04b45b5

Please sign in to comment.