SDL_EventFilter functions now return SDL_bool

This commit is contained in:
Sam Lantinga
2024-08-06 07:36:42 -07:00
parent 57f9c6f7bb
commit 627cb8acd0
8 changed files with 20 additions and 18 deletions

View File

@@ -69,7 +69,7 @@ static void SDL_DispatchMainCallbackEvents(void)
}
}
static int SDLCALL SDL_MainCallbackEventWatcher(void *userdata, SDL_Event *event)
static SDL_bool SDLCALL SDL_MainCallbackEventWatcher(void *userdata, SDL_Event *event)
{
if (ShouldDispatchImmediately(event)) {
// Make sure any currently queued events are processed then dispatch this before continuing
@@ -78,7 +78,7 @@ static int SDLCALL SDL_MainCallbackEventWatcher(void *userdata, SDL_Event *event
} else {
// We'll process this event later from the main event queue
}
return 0;
return SDL_TRUE;
}
SDL_bool SDL_HasMainCallbacks(void)