Skip to content
Permalink
Browse files

Allow testing a specific controller

  • Loading branch information
slouken committed Nov 23, 2020
1 parent ff4bc13 commit 04b45b5581d72225a30a9dd4965d1dceec7ce5a1
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/testgamecontroller.c
@@ -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! */

0 comments on commit 04b45b5

Please sign in to comment.