Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-09-24 23:25:02
Size: 927
Editor: SheenaSmith
Comment: minor change
Revision 3 as of 2013-08-08 22:48:43
Size: 962
Editor: RyanGordon
Comment: Edited
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 6: Line 5:
Use this function to check ,,to see if,, ^for^ certain event types ,,are,, in the event queue. Use this function to check for the existence of a range of event types in the event queue.
Line 17: Line 16:
||'''minType'''||^the minimum number of the specified type of event^||
||'''maxType'''||^the maximum number of the specified type of event^||
||'''minType'''||the minimum type of event to be queried; see [[SDL_EventType]] for details||
||'''maxType'''||the maximum type of event to be queried; see [[SDL_EventType]] for details||
Line 21: Line 20:
Returns ^SDL_TRUE if between '''minType''' and '''maxType''' events are present, or SDL_FALSE if more or less are present^. Returns SDL_TRUE if events with types in the range between '''minType''' and '''maxType''' are present, or SDL_FALSE if not.
Line 29: Line 28:
''You can add useful comments here'' If you need to check for a single event type, you can use [[SDL_HasEvent]]() instead.

SDL_HasEvents

Use this function to check for the existence of a range of event types in the event queue.

Syntax

SDL_bool SDL_HasEvents(Uint32 minType,
                       Uint32 maxType)

Function Parameters

minType

the minimum type of event to be queried; see SDL_EventType for details

maxType

the maximum type of event to be queried; see SDL_EventType for details

Return Value

Returns SDL_TRUE if events with types in the range between minType and maxType are present, or SDL_FALSE if not.

Code Examples

You can add your code example here

Remarks

If you need to check for a single event type, you can use SDL_HasEvent() instead.


CategoryAPI, CategoryEvents

None: SDL_HasEvents (last edited 2013-08-08 22:48:43 by RyanGordon)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit