Merge pull request #109750 from Nintorch/fix-get-connected-joypads
Handle SDL joypad events for connected controllers on game startup (on Windows and Linux)
This commit is contained in:
commit
c8b89b84cc
1 changed files with 3 additions and 0 deletions
|
|
@ -88,6 +88,9 @@ Error JoypadSDL::initialize() {
|
|||
SDL_AddGamepadMappingsFromIO(rw, 1);
|
||||
}
|
||||
|
||||
// Make sure that we handle already connected joypads when the driver is initialized.
|
||||
process_events();
|
||||
|
||||
print_verbose("SDL: Init OK!");
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue