ControllerInterface/SDL: Fix SDL_RegisterEvents error handling. It returns 0 on error, not -1.

This commit is contained in:
Jordan Woyak committed 2026-11-21 15:00:43 -06:00
1 parent 646e8912d1
commit 6071d649e7
1 file changed
+1 -1
@@ -204,7 +204,7 @@ InputBackend::InputBackend(ControllerInterface* controller_interface)
}
const Uint32 custom_events_start = SDL_RegisterEvents(2);
if (custom_events_start == static_cast<Uint32>(-1))
if (custom_events_start == 0)
{
ERROR_LOG_FMT(CONTROLLERINTERFACE, "SDL failed to register custom events");
return;