[SDL] Game event loop and input

Cullum, Steve steven.cullum at eds.com
Fri Jan 31 02:47:01 PST 2003


Have a look at state patterns.  

There is a good article on this in

http://www.codeproject.com/tips/statepattern3.asp

Its for MFC but each class handles it own events etc.

For example Intro - Has a message loop, when intro has finished it changes
state to menu - which has its own message loop etc, etc, etc..


Have a read !!







More information about the SDL mailing list