mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-21 17:21:44 +00:00
Allow testing a specific controller
This commit is contained in:
@@ -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! */
|
||||
|
Reference in New Issue
Block a user