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
This commit is contained in:
Ryan C. Gordon
2024-05-08 16:35:10 -04:00
parent d499b25a3f
commit 7d60ff9965
2 changed files with 11 additions and 6 deletions

View File

@@ -2209,7 +2209,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,