Original Post
Hey Guys Just a general question really, I am considering building an engine to later create a game. My question is within a game which uses an event handler, what sort of events are usually sent. I do not require a list I just want an overview of what would be passed via an event and what would be passed within the game loop. Such as for input when using an input class that uses directinput to return an array of BYTES that contain key press details would it be better practice to have the input class sort which keys are pressed and then send an event such as JUMPKEYPRESSED to the event handler or to have the input class just return the arraay of BYTES via a method and whatever class needs to know the input just call this method. I am just curious because the passing input via an event handler seems to be the easiest way to do it but when you have a lot of classes within the event dispatcher requiring knowledge of input at that time it seems like a burden on the processor.