Skip to content

Commit

Permalink
Update controllermap.c
Browse files Browse the repository at this point in the history
  • Loading branch information
BeWorld2018 committed Oct 21, 2023
1 parent f18dde0 commit bec6c9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/controllermap.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ int main(int argc, char *argv[])
return 2;
}

while (!done && SDL_NumJoysticks() == 0) {
SDL_Event event;

while (SDL_PollEvent(&event) > 0) {
switch (event.type) {
Expand Down

0 comments on commit bec6c9c

Please sign in to comment.