mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-22 04:38:30 +00:00
Fixed mapping a controller other than the first one
This commit is contained in:
parent
1bf7898ddf
commit
1528e7c3c9
1 changed files with 7 additions and 3 deletions
|
@ -755,9 +755,13 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
if (consumed <= 0) {
|
||||
static const char *options[] = { "[--bind-touchpad]", NULL };
|
||||
SDLTest_CommonLogUsage(state, argv[0], options);
|
||||
exit(1);
|
||||
if (argv[i][0] == '-') {
|
||||
static const char *options[] = { "[--bind-touchpad]", NULL };
|
||||
SDLTest_CommonLogUsage(state, argv[0], options);
|
||||
exit(1);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
i += consumed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue