We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9880f commit c549cb4Copy full SHA for c549cb4
code/io/joy-sdl.cpp
@@ -483,7 +483,8 @@ bool device_event_handler(const SDL_Event &evt)
483
484
for (auto iter = joysticks.begin(); iter != joysticks.end(); ++iter)
485
{
486
- if ((*iter)->getID() == added->getID())
+ // must use GUID here as joystick IDs are never reused
487
+ if ((*iter)->getGUID() == added->getGUID())
488
489
// Already have this stick
490
*(*iter) = std::move(*added);
0 commit comments