mirror of https://github.com/godotengine/godot
Previously `joypad_count` was used as the index into the d_joypads array when initializing a new gamepad.
This caused the accidental override of an already connected device when a gamepad with a lower id was disconnected and connected again.
fixes #17566
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| android | ||
| iphone | ||
| javascript | ||
| osx | ||
| server | ||
| uwp | ||
| windows | ||
| x11 | ||
| SCsub | ||
| register_platform_apis.h | ||