Question about creating a Game State Manager
I'm making a Game State Manager of my own. It uses a stack, to pop Game States onto. my Render and Update methods simply call GameStateManager.render and update respectively.
My question is, whats the best way to send information about events to the current gamestate? Right now I only need KeyEvents, but sometime in the future I may need information about the Mouse and the Window and such.
Anybody have any experience with this, or perhaps some reference code?