mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-27 17:11:37 +00:00
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:
committed by
Sam Lantinga
parent
ed441c8289
commit
eb053c7f3f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user