[SDL] Polling events for different subsystems

Sam Lantinga slouken at devolution.com
Wed Sep 4 02:54:01 PDT 2002


> The problem occure when writing the subsystems using SDL,
> what I want is to poll events separately for each subsystem
> (while syncing with a timer of course) and I'm not sure how
> to do that the right way?

I'm not sure what you mean by polling an event for each subsystem?
You can always call SDL_PollEvent() and discard the event and then
check the current device state later in your program.

Is that what you want?

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list