mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
Allow quitting controllermap if there are no controllers attached
This commit is contained in:
parent
9d64e6b442
commit
8726f500ef
@ -746,7 +746,7 @@ main(int argc, char *argv[])
|
||||
return 2;
|
||||
}
|
||||
|
||||
while (SDL_NumJoysticks() == 0) {
|
||||
while (!done && SDL_NumJoysticks() == 0) {
|
||||
SDL_Event event;
|
||||
|
||||
while (SDL_PollEvent(&event) > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user