From 6071d649e79807dbb796d29988ebb29014c46dda Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Thu, 19 Nov 2026 02:44:46 -0600 Subject: ControllerInterface/SDL: Fix SDL_RegisterEvents error handling. It returns 0 on error, not -1. --- Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp') 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; -- cgit v1.2.3