Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2010-10-11 05:27:46
Size: 847
Editor: SheenaSmith
Comment: update content
Revision 6 as of 2013-08-08 22:40:16
Size: 798
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 certain event types in the event queue.
Line 16: Line 15:
||'''type'''||^the type of event to be queried ???; see [[SDL_Event]]/[[SDL_EventType]] ??? for details^|| ||'''type'''||the type of event to be queried; see [[SDL_EventType]] for details||
Line 19: Line 18:
Returns SDL_TRUE if events matching '''type''' are present, or SDL_FALSE if events matching '''type''' are not present. ??? Returns SDL_TRUE if events matching '''type''' are present, or SDL_FALSE if events matching '''type''' are not present.
Line 27: Line 26:
''You can add useful comments here'' If you need to check for a range of event types, use [[SDL_HasEvents]] instead.

SDL_HasEvent

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

Syntax

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

You can add your code example here

Remarks

If you need to check for a range of event types, use SDL_HasEvents instead.


CategoryAPI, CategoryEvents

None: SDL_HasEvent (last edited 2013-08-08 22:49:07 by RyanGordon)

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