SDL_JoystickEventState: Make documentation and implementation match.

This changes the `SDL_EVENTS_DISABLED` path's return value from SDL_DISABLE
to SDL_IGNORE to match expectations, but doesn't actually change the ABI,
since these two symbols are both zero.

Fixes https://github.com/libsdl-org/sdlwiki/issues/460

(cherry picked from commit 7d60ff9965)
This commit is contained in:
Ryan C. Gordon authored and Sam Lantinga committed 2024-07-03 13:24:19 -07:00
1 parent ed441c8289
commit eb053c7f3f
2 files changed
+11 -6

No files matched your search

+1 -1
View File
@@ -2220,7 +2220,7 @@ void SDL_JoystickUpdate(void)
int SDL_JoystickEventState(int state)
{
#ifdef SDL_EVENTS_DISABLED
return SDL_DISABLE;
return SDL_IGNORE;
#else
const Uint32 event_list[] = {
SDL_JOYAXISMOTION, SDL_JOYBALLMOTION, SDL_JOYHATMOTION,