This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

Event Handling

Include File(s): SDL_events.h

Introduction

Event handling allows your application to receive input from the user. Event handling is initialized (along with video) with a call to:

SDL_Init(SDL_INIT_VIDEO);

(see Initialization & Shutdown and SDL_Init() for details)

Internally, SDL stores all the events waiting to be handled in an event queue. Using functions like SDL_PollEvent(), SDL_PeepEvents() and SDL_WaitEvent() you can observe and handle waiting input events.

The event queue itself is composed of a series of SDL_Event structures, one for each waiting event. SDL_Event structures are read from the queue with the SDL_PollEvent() function and it is then up to the application to process the information stored with them.

Enumerations

<<FullSearchCached(category:CategoryEnum CategoryEvents -title:SGEnumerations)>>

Structures

<<FullSearchCached(category:CategoryStruct CategoryEvents -title:SGStructures)>>

Functions

<<FullSearchCached(category:CategoryEvents -CategoryEnum -CategoryStruct -title:SGFunctions)>>


CategoryCategory


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.