diff --git a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp index 92def8cc0a..99e953f146 100644 --- a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp +++ b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp @@ -204,7 +204,7 @@ InputBackend::InputBackend(ControllerInterface* controller_interface) } const Uint32 custom_events_start = SDL_RegisterEvents(2); - if (custom_events_start == static_cast(-1)) + if (custom_events_start == 0) { ERROR_LOG_FMT(CONTROLLERINTERFACE, "SDL failed to register custom events"); return;