[gameprogrammer] engine design, question 2

After studying game engines API and a game programming book I have noticed that all uses a separate Input class. Why should I use one instead of processing the events in the main loop via sdl event management functions? The only reason that comes to my mind is to isolate event management from the game logic and so be able to switch event handling library or something like that.

--
Roger D. Vargas
http://dsgp.blogspot.com | Linux, programación, juegos


______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com



--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: