summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/SDL
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-11-19 02:44:46 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2026-11-21 15:00:43 -0600
commit6071d649e79807dbb796d29988ebb29014c46dda (patch)
tree99af8a055277b8b06285a7599f34d3ee3d8d314e /Source/Core/InputCommon/ControllerInterface/SDL
parent646e8912d131b7c027dcb6e3d27e397a99f391cb (diff)
ControllerInterface/SDL: Fix SDL_RegisterEvents error handling. It returns 0 on error, not -1.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/SDL')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp2
1 files changed, 1 insertions, 1 deletions
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<Uint32>(-1))
+ if (custom_events_start == 0)
{
ERROR_LOG_FMT(CONTROLLERINTERFACE, "SDL failed to register custom events");
return;