Skip to content

SDL: Always make unique serial numbers

Overcooked! All You Can Eat only adds new controllers if no existing controller has the same serial as it. SDL GUIDs mark the model of controller, but don't differentiate between multiple controllers of the same model. This is especially bad with Steam virtual controllers, which all have the same GUID.

Switch to using SDL_JoystickGetSerial if available, and otherwise combining the GUID with the controller index

Edited by Evan Tang

Merge request reports

Loading