#pragma section-numbers off #pragma disable-camelcase = SDL_HasEvent = Use this function to check for the existence of certain event types in the event queue. <> == Syntax == {{{#!highlight cpp SDL_bool SDL_HasEvent(Uint32 type) }}} == Function Parameters == ||'''type'''||the type of event to be queried; see [[SDL_EventType]] for details|| == Return Value == Returns SDL_TRUE if events matching '''type''' are present, or SDL_FALSE if events matching '''type''' are not present. == Code Examples == {{{#!highlight cpp You can add your code example here }}} == Remarks == If you need to check for a range of event types, use [[SDL_HasEvents]]() instead. == Related Functions == .[[SDL_HasEvents]] ---- [[CategoryAPI]], [[CategoryEvents]]